[R] moving text labels in plot

cls59 chuck at sharpsteen.net
Sun Jul 26 22:11:04 CEST 2009




Luis Iván Ortiz Valencia wrote:
> 
> Hi R users
> 
> I need to specify some parameter input in plot code to move Y text label
> to
> left.
> 
> plot(temp, develo_rate, xlab = expression(paste("Temperature (C"^o,")")),
>     ylab = expression(paste("Development rate (d"^-1,")")),las=1,pch=19,
>     xlim=c(0,32),ylim=c(0,0.03),xaxs = "i", yaxs = "i")
> 
> Plot result is added.
> 
> any help?
> 
> Ivan
> 
> 


>From the looks of your plot, the label is already to the left as far as it
can go. The problem is that the left margin of the plot is not big enough to
allow good separation between the axes label and the axes numbering.

You can adjust the plot margins by calling the par() function before
creating your plot. In this case you want to indicate that you are setting
the mar option and pass a vector of four numbers:

par( mar = c(bottom, left, top, right) )

Note that the defaults for mar are:

c( 5.1, 4.1, 4.1, 2.1 )


Hope that helps!

-Charlie

-----
Charlie Sharpsteen
Undergraduate
Environmental Resources Engineering
Humboldt State University
-- 
View this message in context: http://www.nabble.com/moving-text-labels-in-plot-tp24668930p24670000.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list