[R] Manipulating text and linear regression in openair scatterPlot function

David Winsemius dwinsemius at comcast.net
Sun Jun 21 03:27:52 CEST 2015


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



More information about the R-help mailing list