The SAS Output Delivery System and reporting techniques

Cartesian coordinate system

Reply
N/A
Posts: 0

Cartesian coordinate system

Hello,

I want to produce, with my "proc plot", a cartesian coordinate system where the unit on the two axis is the same length.

How can I do that ? I want something like 1cm for 1 unit on both axis.

Thanks !
N/A
Posts: 0

Re: Cartesian coordinate system

Posted in reply to deleted_user
I forgot :

I would also like to know how to annotate my graph, with a label for each point.
How can I do that ?

Thanks !
Super Contributor
Posts: 260

Re: Cartesian coordinate system

Posted in reply to deleted_user
Hello.

There is no real annotate feature outside SAS/GRAPH, so you can't really annotate a proc plot. Either use GPLOT or consider the following syntax :
PROC PLOT DATA = ... ;
PLOT Xvar * Yvar = "#" $ labelVar ;
RUN ; QUIT ;

THe # symbol will be used to mark points, and the values of labelVar will be written next to the points.

For "square" graphics with both axis of the same length, try to change the LS and PS option to control the Output page size. You can shrink or expand axes that way (you can do the same with SAS/GRAPH using the VSIZE and HSIZE GOPTIONS). But it's not a very satisfying way to do things, just a workaround.

Maybe you can check also the ODS GRAPHICS templates : maybe there is a "square plot" template that you could use in a Data step (I've seen SUGI papers talking about such things).

Hope it helps.
Olivier
N/A
Posts: 0

Re: Cartesian coordinate system

Thank you Olivier !
Ask a Question
Discussion stats
  • 3 replies
  • 157 views
  • 0 likes
  • 2 in conversation