BookmarkSubscribeRSS Feed
Ken_oy
Fluorite | Level 6
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
9 REPLIES 9
Ken_oy
Fluorite | Level 6
or can I add plot to another plot? without removing the original plots.
Ken_oy
Fluorite | Level 6
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
deleted_user
Not applicable
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.
Ken_oy
Fluorite | Level 6
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!
deleted_user
Not applicable
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)?
Ken_oy
Fluorite | Level 6
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!!
deleted_user
Not applicable
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.
Ken_oy
Fluorite | Level 6
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
deleted_user
Not applicable
Ken,

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

PLOT Y*X

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 9 replies
  • 3468 views
  • 0 likes
  • 2 in conversation