amyv
2015-Jun-20 22:04 UTC
[R] Manipulating text and linear regression in openair scatterPlot function
Hi all, I'm working with the openair package scatterPlot function and am trying to change/add/remove the line text of the linear regression, e.g. change the font size, split it into 2 rows, just show the equation OR the R^2 value or even remove both but leave the linear regression line. Simple example: scatterPlot(data, x, y, linear = TRUE) #I can change the font size using: scatterPlot(data, x, y, linear = TRUE, par.settings=list(fontsize=list(text=18))) I would be really grateful if someone could point me in the right direction. Thanks! Amy -- View this message in context: http://r.789695.n4.nabble.com/Manipulating-text-and-linear-regression-in-openair-scatterPlot-function-tp4708893.html Sent from the R help mailing list archive at Nabble.com.
David Winsemius
2015-Jun-21 01:27 UTC
[R] Manipulating text and linear regression in openair scatterPlot function
On Jun 20, 2015, at 3:04 PM, amyv wrote:> Hi all, > > I'm working with the openair package scatterPlot function and am trying to > change/add/remove the line text of the linear regression, e.g. change the > font size, split it into 2 rows, just show the equation OR the R^2 value or > even remove both but leave the linear regression line. > > Simple example: > > scatterPlot(data, x, y, linear = TRUE) > > #I can change the font size using: > > scatterPlot(data, x, y, linear = TRUE, > par.settings=list(fontsize=list(text=18)))What "equation" or "text" are you seeing? Split? .... split what? There no 'data'-object in your posting and when I use the first example in the help page for ?scatterPlot I see nothing that matches up with you request.> > I would be really grateful if someone could point me in the right direction.And we would be grateful if you would post a question that made sense. Please read this material and do read about this mailing list, rather than persisting in the delusion that Nabble is the Rhelp mailing list. =======R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see 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 Alameda, CA, USA
Jim Lemon
2015-Jun-21 05:10 UTC
[R] Manipulating text and linear regression in openair scatterPlot function
Hi Amy, The line at the top of the plot is formatted and displayed somewhere In the 700+ lines of the scatterPlot code. I was unable to find where that is, so the best option is to email the maintainer of the package: david.carslaw at york.ac.uk Jim On Sun, Jun 21, 2015 at 11:27 AM, David Winsemius <dwinsemius at comcast.net> wrote:> > On Jun 20, 2015, at 3:04 PM, amyv wrote: > >> Hi all, >> >> I'm working with the openair package scatterPlot function and am trying to >> change/add/remove the line text of the linear regression, e.g. change the >> font size, split it into 2 rows, just show the equation OR the R^2 value or >> even remove both but leave the linear regression line. >> >> Simple example: >> >> scatterPlot(data, x, y, linear = TRUE) >> >> #I can change the font size using: >> >> scatterPlot(data, x, y, linear = TRUE, >> par.settings=list(fontsize=list(text=18))) > > What "equation" or "text" are you seeing? Split? .... split what? There no 'data'-object in your posting and when I use the first example in the help page for ?scatterPlot I see nothing that matches up with you request. > > >> >> I would be really grateful if someone could point me in the right direction. > > And we would be grateful if you would post a question that made sense. Please read this material and do read about this mailing list, rather than persisting in the delusion that Nabble is the Rhelp mailing list. > =======> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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 > Alameda, CA, USA > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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.