[R] 2 Y-AXIS labels on the same (left-hand side) Y-AXIS XXXX
David Winsemius
dwinsemius at comcast.net
Mon Nov 28 23:38:43 CET 2011
On Nov 28, 2011, at 4:50 PM, John Kane wrote:
> I think your assumption is correct. Have a look at ?par.
> It's been a while but I think you need to modify the mai or mar
> values. Probably the mar.
>
If you set ylab ="" in plot and then use title you can work with the
line= parameter:
plot(1,1, ylab = "", xlab = "")
title( ylab = "Residualized Post Score \n (Adjusted for Age and
Gender)", line=2)
--
David.
> --- On Mon, 11/28/11, Dan Abner <dan.abner99 at gmail.com> wrote:
>
>> From: Dan Abner <dan.abner99 at gmail.com>
>> Subject: [R] 2 Y-AXIS labels on the same (left-hand side) Y-AXIS XXXX
>> To: r-help at r-project.org
>> Received: Monday, November 28, 2011, 4:37 PM
>> Hello everyone,
>>
>> Is it possible to specify a 2 line y-axis label on the same
>> lef-hand side
>> y-axis? I am using the \n regular expression, but only the
>> 2nd line appears
>> (I assume the 1st line is printed off the page...)
>>
>>
>> plot(PRE_SHB,R1,
>> main="Figure 1.1: Scatterplot of Residualized
>> Post Score",
>> xlab = "Pre Score",
>> ylab = "Residualized Post Score \n
>> (Adjusted for Age and Gender)")
>>
>> Thanks!!
>>
>> Dan
>>
>> [[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.
David Winsemius, MD
West Hartford, CT
More information about the R-help
mailing list