Plotting in 2D and 3D

2 次查看(过去 30 天)
Rookshana Trollope
Rookshana Trollope 2014-1-16
I have 7500 rows and 30 columns. I want to plot and rotate 2 and 3 variables against each other and get regression fits for multiple populations noticeable within this data.
The plots I have been able to generate look very shoddy. I can e-mail examples to anyone that can help.
Thanks
  6 个评论
Rookshana Trollope
Rookshana Trollope 2014-1-20
I am also including a matlab diagram with a point maker instead of circles.
Amit
Amit 2014-1-20
I see the plot. You're plotting 7500 data points and 29 variables. I believe you have issue in the screenshot image?

请先登录,再进行评论。

回答(2 个)

Walter Roberson
Walter Roberson 2014-1-20
Use the 'fill' option when you call scatter().
And notice that you are using a different aspect ratio for the plots then what is being used in the other program. The sample is notably wider compared to its height, which is going to have the effect of stretching the plot. You can adjust your axis Position property to get different aspect ratios.
  2 个评论
Rookshana Trollope
Rookshana Trollope 2014-1-20
Ok I will try this thanks.
Rookshana Trollope
Rookshana Trollope 2014-1-20
I have checked and yes I do have the fill option, but it does not look like it ?. Even if I change the axis and the height. It still does not look like over 7000 data points.

请先登录,再进行评论。


Rookshana Trollope
Rookshana Trollope 2014-1-20
Herewith another plot and also does not look like more than 7000.
  8 个评论
Amit
Amit 2014-1-20
编辑:Amit 2014-1-20
Yes, they need to count individually. And Indeed they count individually in regression analysis. The more a data point appears, the more weight it contains towards fit.
Doing this visually might be tricky. However, this fall into statics. You can do test of significance (like null hypothesis) for a variable.
Again my interpretation of your responses. In your case. you are looking for brittle failure. And you have 29 different factors you're testing for? Some of these factor will be insignificant towards your response (brittle failure). You're trying to identify the factors which a significant and then create a model describing the effect of these significant factors towards your response (brittle failure).
Walter Roberson
Walter Roberson 2014-1-20
If you are trying to scatter plot data that has multiple points with the same x and y but different value, then you should be using a 3D scatter plot,
scatter3(x, y, value, 'fill')

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Model Building and Assessment 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by