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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register 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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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