Re: [R] Weighted regression markers on scatter plots

2013-10-17 Thread Greg Snow
The simplest approach is to specify the cex parameter in the call to plot.
 plot(1:3, 1:3, cex=3:1) for example will plot the 1st point 3 times as
big, the 2nd 2 times as big, and the 3rd at the standard size.

You can get more control by using the symbols function instead of the plot
function and set the diameter of circles directly.  In either case you
probably want to scale by the square root of the weight.

The my.symbols function in the TeachingDemos package is another option if
the symbols function does not include the symbol you want or if you want a
little different level of control.


On Wed, Oct 16, 2013 at 11:04 AM, Msugarman mike.sugar...@wayne.edu wrote:

 Hi all,

 I'm trying to graph the results of a weighted regression analysis. Is
 anyone
 aware of a way to make my markers appear a different sizes to be consistent
 with their respective weights?

 Thanks,
 -Mike Sugarman
 Wayne State University



 --
 View this message in context:
 http://r.789695.n4.nabble.com/Weighted-regression-markers-on-scatter-plots-tp4678370.html
 Sent from the R help mailing list archive at Nabble.com.

 __
 R-help@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.




-- 
Gregory (Greg) L. Snow Ph.D.
538...@gmail.com

[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] Weighted regression markers on scatter plots

2013-10-17 Thread David Winsemius

On Oct 16, 2013, at 10:04 AM, Msugarman wrote:

 Hi all,
 
 I'm trying to graph the results of a weighted regression analysis. Is anyone
 aware of a way to make my markers appear a different sizes to be consistent
 with their respective weights?

You have not produced any data or code. If using base graphics then 
`plot.default` accepta vector for cex.


 
 Thanks,
 -Mike Sugarman
 Wayne State University
 
 --
 View this message in context: 
 http://r.789695.n4.nabble.com/Weighted-regression-markers-on-scatter-plots-tp4678370.html
 Sent from the R help mailing list archive at Nabble.com.

David Winsemius
Alameda, CA, USA

__
R-help@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.


Re: [R] Weighted regression markers on scatter plots

2013-10-17 Thread Jim Lemon

On 10/17/2013 04:04 AM, Msugarman wrote:

Hi all,

I'm trying to graph the results of a weighted regression analysis. Is anyone
aware of a way to make my markers appear a different sizes to be consistent
with their respective weights?


Hi Mike,
Have a look at the size_n_color function in the plotrix package.

Jim

__
R-help@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.