Creating your own plot from scratch will probably not be that hard.  You can 
plot using type='n' to set up the plot.  Then the symbols function will plot 
squares or rectangles with the length of the sides specified by you.  The 
segments function can then add the lines.

If you want a shape that symbols does not provide (the diamond for example), 
then you can use the my.symbols function in the TeachingDemos package to create 
your own symbol (you could include the line as part of that if you want) and 
plot it.  The abline function will add the reference line.  You can add the 
text using the text function, or use par to create an extra large margin and 
use mtext to put the data in the margin.  Or the addtable2plot function in the 
plotrix package may help with the positioning of the text.

Hope this helps,


--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
[EMAIL PROTECTED]
801.408.8111


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> project.org] On Behalf Of mcolaco
> Sent: Monday, October 27, 2008 4:40 PM
> To: r-help@r-project.org
> Subject: [R] Simple plotting question
>
>
> I'm trying to make a plot very similar to a forest plot, with points of
> different sizes with means, standard deviations, and a reference line.
> However, instead of using the standard deviations to determine the size
> of
> the data points, I would like to choose my own weightings.  It seems
> like it
> should be a pretty straightforward plot (though, I assume it would not
> be a
> modified forest plot), but I can't seem to figure out any plotting
> function
> in R to do it.  I'd rather not have to build it from scratch.
>
> Thank you so much for the help.
>
> Martin
> --
> View this message in context: http://www.nabble.com/Simple-plotting-
> question-tp20197978p20197978.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.

______________________________________________
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.

Reply via email to