Re: [R] how to add different type of lines (short dash, long dash) into current plot)

From: Greg Snow <Greg.Snow_at_imail.org>
Date: Mon, 14 Apr 2008 14:59:37 -0600

The "type" argument to plotting functions determines the type of plot (plot lines or points or both or ...). To specify the type of line you need to use the "lty" argument. See the help page for "par" (?par) for details on the types of line you can use (also "lwd" is the width of the lines).

But you should note that the human eye is drawn to contrasts and therefore using dashed and dotted lines will sometimes distract the viewer or require more work to understand the main points of the plot.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow_at_imail.org
(801) 408-8111
 
 


> -----Original Message-----
> From: r-help-bounces_at_r-project.org
> [mailto:r-help-bounces_at_r-project.org] On Behalf Of Xin
> Sent: Monday, April 14, 2008 1:45 PM
> To: R-Help
> Subject: [R] how to add different type of lines (short
> dash,long dash) into current plot)
>
> Dear
>
> I try to add three different lines (solid, short dash,
> long dash) in to current barplot. I saw there are types of

> lines ("p","b", ect). However, they are not what I request.
> Has nayone have this experience?
>
> Many Thanks!
>
> Xin
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
______________________________________________ R-help_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Received on Mon 14 Apr 2008 - 21:07:59 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 14 Apr 2008 - 21:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive