[R] write values of points beside points in plot

katharina may.katharina at googlemail.com
Mon Jun 1 20:27:44 CEST 2009


I've calculated coefficient$intercept  for each site I took the data from.
I want to plot this:
plot(coefficient$intercept ~ coefficient$average_BM_leaves_needles,
 main="intercepts ::: BM_leaves_needles")

with the site number being displayed for each point in the graph/plot
The site numbers are stored in a list (coefficient$site_no)

I know that the id of outliers in e.g. a boxplot is displayed beside the
point
in the graph representing the outlier (if outliers are included) and
therefore
I would like to know how it is possible to display a label beside a data
point
in the graph/plot?

I hope I made myself more clear this time...?

Thanks, Katharina





jholtman wrote:
> 
> ?text
> 
> On Mon, Jun 1, 2009 at 11:07 AM, Katharina May
> <may.katharina at googlemail.com
>> wrote:
> 
>> Hi everyone,
>>
>> is it possible to write a certain value beside a point in a plot?
>>
>> I'm plotting the following:
>> plot(coefficient$intercept ~ coefficient$average_BM_leaves_needles,
>> main="intercepts ::: BM_leaves_needles",
>>     ylab="intercepts", xlab="average BM_leaves_needles per site [kg]")
>>
>> and I want to have the value of coefficient$site_no written beside
>> each point within the plot (to recognize them)
>>
>> sorry for troubling you with this question, but I somehow can't find
>> any information on it
>> (maybe because I'm not quite sure what to search for)
>>
>> Thanks a lot,
>>
>>          Katharina
>>
>> ______________________________________________
>> 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<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?
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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.
> 
> 

-- 
View this message in context: http://www.nabble.com/write-values-of-points-beside-points-in-plot-tp23816561p23819694.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list