Re: [R] Line Breaks and Axis breaks..

From: Doran, Harold <HDoran_at_air.org>
Date: Fri, 23 May 2008 11:04:31 -0400


plot(1:10, xlab='Hi Megan, \n Is this what you want?')

> -----Original Message-----
> From: r-help-bounces_at_r-project.org
> [mailto:r-help-bounces_at_r-project.org] On Behalf Of Megan J Bellamy
> Sent: Friday, May 23, 2008 10:56 AM
> To: r-help_at_r-project.org
> Subject: [R] Line Breaks and Axis breaks..
>
> Hello all,
>
> I have two questions. One probably has a very simple answer
> but I have checked the FAQ, other websites and still have not
> found an answer. I am new to using R. My very simple
> question is how to do line breaks when creating an axis title
> (xlab) ? I have a few that are too long and they get cut
> off... I found on the internet the "/n" function but I think
> I must be using it incorrectly because it is not working.
>
> My second question is: after inserting an axis break using
> the following code, how to I adjust the scales on either side
> of that axis break? This is for a boxplot graph. See
> attachment... there is an outlier under CLI 5 that can't be
> seen as a result.
>
> >install.packages("plotrix")
> axis.break(axis=1, breakpos=NULL, bgcol="white",
> breakcol="black", style="gap", brw=0.02)
>
> Thank you very much in advance!
> Megan Bellamy
>
>



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 Fri 23 May 2008 - 16:24:36 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 Fri 23 May 2008 - 16:30:39 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