Help using Base SAS procedures

How to do overlay for a lot of plots

Reply
Frequent Contributor
Posts: 128

How to do overlay for a lot of plots

Hi everyone,


To make it simpler,

I have a data set, has variables:
x, y1, y2, y3, ...........y50;

I want to plot

y1*x, y2*x, y3*x...............y500*x / overlay,

Is there any simpler way for this??

Thanks!!

Ken


----------------------------------
The following is the previous post
----------------------------------



Is it possible to overlay plots from different datasets (without merging)?

I have more than 500 plots need to be displayed on one graph, so I can not do this one by one.

Any suggestions? Thanks a lot!!

Ken

Message was edited by: Ken_oy

Message was edited by: Ken_oy Message was edited by: Ken_oy
Frequent Contributor
Posts: 128

Re: How to overlay plots from different dataset.

or can I add plot to another plot? without removing the original plots.
Frequent Contributor
Posts: 128

Re: How to overlay plots from different dataset.

To make it simpler,

I have a data set, has variables:
x, y1, y2, y3, ...........y50;

I want to plot

y1*x, y2*x, y3*x...............y500*x / overlay,

Is there any simpler way for this??

Thanks!!

Ken
N/A
Posts: 0

Re: How to overlay plots from different dataset.

Without giving away any confidential information, I think you need to describe what you are trying to achieve with the graph. I can't imagine that a graph which encompasses an overlay of 500 variables will be comprehensible.
Frequent Contributor
Posts: 128

Re: How to overlay plots from different dataset.

yes, it may be messy.

All 500 plots are from 500 different measurements. If I plot all of them together, maybe I can find something useful

Thank you!
N/A
Posts: 0

Re: How to overlay plots from different dataset.

Do you just have a total of 500 measurements (but stored in separate variables)? Or, do you have 500*N observations (where N may vary, but is the number of observations per variable)?
Frequent Contributor
Posts: 128

Re: How to overlay plots from different dataset.

yes, I have that.

And I also have separate data sets for all 500 measurements also.

Any suggestions? I just want to know how to do that in a easier way.

Thanks!!
N/A
Posts: 0

Re: How to overlay plots from different dataset.

Uh, that was an "or". I don't know what your "yes" refers to!

To recap: do you have a total of 500 measurements, but they are stored in separate variables in separate data sets?

Or, if you have something else, explain what the exact structure looks like.
Frequent Contributor
Posts: 128

Re: How to overlay plots from different dataset.

Sorry to make you confusing.

First: I DO have a total of 500 measurements, but they are stored in separate variables in separate data sets

Second: To make it simpler, I merge all the dataset1 (x, y1), data set2 (x, y2)...... data set500(x, y500) to one dataset also.

Any help?

Thanks!

Ken
N/A
Posts: 0

Re: How to overlay plots from different dataset.

Ken,

Why don't you simply SET them together? Then, you could do:

PLOT Y*X
Ask a Question
Discussion stats
  • 9 replies
  • 160 views
  • 0 likes
  • 2 in conversation