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 -------------- next part -------------- A non-text attachment was scrubbed... Name: scater_temp_desen_rate.png Type: image/png Size: 4815 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090726/de93d9e7/attachment-0002.png>
Try this: par(mar=c(4,6,2,1)) plot(0, xlab = expression(paste("Temperature (C"^o,")")), ylab = "" ,las=1,pch=19, xlim=c(0,32),ylim=c(0,0.03),xaxs = "i", yaxs = "i") mtext(expression(paste("Development rate (d"^-1,")")), 2, line=4) 2009/7/26 Luis Iv?n Ortiz Valencia <liov2067 at gmail.com>:> 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 > > ______________________________________________ > 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. > >-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve?
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 itcan 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.