LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2009, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 19 Jun 2009 14:52:05 -0400
Reply-To:     msz03@albany.edu
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Mike Zdeb <msz03@ALBANY.EDU>
Subject:      Re: scatterplot with diagonal reference plot
Content-Type: text/plain;charset=iso-8859-1

hi ... one suggestion ...

data try; input x y grp; cards; 12 10 1 13 24 2 32 21 1 24 14 2 ; run;

data anno; retain xsys ysys '1'; function = 'move'; x=0; y=0; output; function = 'draw'; x=100; y=100; output; run;

goptions reset=all;

axis1 offset=(0,0)pct;

symbol1 v=dot c=blue; symbol2 v=dot c=red;

proc gplot data=try annotate=anno; plot y*x=grp / haxis=axis1 vaxis=axis1; run; quit;

-- Mike Zdeb U@Albany School of Public Health One University Place Rensselaer, New York 12144-3456 P/518-402-6479 F/630-604-1475

> HI all, > > I was wondering if any of you know how to overlay a 45 degree line to > a scatterplot. The scatterplot however is a function of a grouping variable. > i.e. > > data try; > input x y grp; > cards; > 12 10 1 > 13 24 2 > 32 21 1 > 24 14 2 > ; > > The scatter plot should have a plot statement: y*x=grp in it. > > Thanks in advance! > > -Mike >


Back to: Top of message | Previous page | Main SAS-L page