LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (October 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 23 Oct 2008 09:28:39 -0400
Reply-To:     Nathaniel.Wooding@DOM.COM
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Nat Wooding <Nathaniel.Wooding@DOM.COM>
Subject:      Re: PROC GPLOT question
In-Reply-To:  <a09939af-d004-44c4-ab3e-a029faef8913@t18g2000prt.googlegroups.com>
Content-Type: text/plain; charset="US-ASCII"

Claus

All you need to do is create a variable that identifies you points. In the example below, I call this "TYPE". Then create a copy of your points and give type a different value. Use the plot statement form

Plot Y*X=Type

and with the proper smbol statements, one set will have the regression line fitted and the other will have the individual points plotted. Try running the following example

Data Points; input x y; cards; 1 2 3 5 7 22 9 12 run; Data Plot; set points; type = 1; output; type = 2; output; run; Proc Sort data = points; by type x; run;

Proc Gplot; plot Y*X = type; symbol1 c=red i = rl; symbol2 c= green v=star i = join; run; quit;

Nat Wooding Environmental Specialist III Dominion, Environmental Biology 4111 Castlewood Rd Richmond, VA 23234 Phone:804-271-5313, Fax: 804-271-2977

"jlee8071@gmail.c om" <jlee8071@GMAIL.C To OM> SAS-L@LISTSERV.UGA.EDU Sent by: "SAS(r) cc Discussion" <SAS-L@LISTSERV.U Subject GA.EDU> PROC GPLOT question

10/23/2008 01:31 AM

Please respond to "jlee8071@gmail.c om" <jlee8071@GMAIL.C OM>

Dear SAS users,

Hi, I want to use proc gplot to draw a regression line but want to add a x=y line to the plot.

Can you inform me a good simple way?

thank you, claus

CONFIDENTIALITY NOTICE: This electronic message contains information which may be legally confidential and/or privileged and does not in any case represent a firm ENERGY COMMODITY bid or offer relating thereto which binds the sender without an additional express written confirmation to that effect. The information is intended solely for the individual or entity named above and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.


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