Hi
r-help-bounces at stat.math.ethz.ch napsal dne 22.08.2007 09:10:26:
>
> Hello,
>
> I created a simple scatter diagram:
>
> x= c(53, 52, 55, 65, 71, 69, 75, 78, 88, 70)
> y= c(162, 165, 165, 171, 173, 175, 179, 181, 184, 176)
> plot(x, y)
>
> Now I would like to display the mean on that diagram.
do you think
points(mean(x), mean(y))
or e.g.
abline(h=mean(y))
abline(v=mean(x))
Regards
Petr
>
> Can anyone tell me what possibilities I have to do that?
> Thanks in advance
>
> Tobias
>
> --
> View this message in context:
http://www.nabble.com/displaying-the-means-on-a-> scatter-diagram-tf4309832.html#a12269270
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.