Are there any ways that could display axis (X and Y) with the following dataset?
Thank you for helping
Hi,
If I've understood you correctly, you want to create a plotted graph of the values in the data set.
As you can see the values for the y variable (column) are missing (that's what the '.' means for numeric values). So if a y value is missing for a graph coordinate then the coordinate cannot be plotted.
If you share the code, input data and log that created these values then perhaps we can help identify why the y variable has missing values.
Regards,
Amir.
Hi Amir
Thanks for reply. I need to do the two line charts for x and y.
First:
X Y
0 0
0.25 0
0.5 0
Second: log(Y)
X Y
0 .
0.25 .
0.5 .
I have no question for the first dataset. But, for the second one, I'm not sure how to present it in figure usually.
I need to show X and Y axis at least, or should I add a statement that the figure is not available?
Hi,
I would suggest that this is a question that you should ask your teacher / manager or whoever gave you the work because they set the requirements; what would they like to see if the coordinate values are missing and so cannot be plotted.
If this is just some practice work you're doing then I would suggest displaying a clear message that the coordinates could not be used because they had missing values. Otherwise, if you just display an empty set of axes, then there could be some doubt about why there are no plot points on the graph. Using a message makes it clear what has happened.
Regards,
Amir.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.