I am sure you would have found answers to your questions if you would have
searched the mailing list archive
(http://r.789695.n4.nabble.com/R-help-f789696.html)!
To get you started, have a look at:
?text (for the z values)
?abline (for the line)
Jannis
--- Matev? Pavli? <matevz.pavlic at gi-zrmk.si> schrieb am Mi, 4.5.2011:
> Von: Matev? Pavli? <matevz.pavlic at gi-zrmk.si>
> Betreff: [R] scatter plot with Z value
> An: r-help at r-project.org
> Datum: Mittwoch, 4. Mai, 2011 12:55 Uhr
> Hi all,
>
>
>
> I would like to create a scatter plot of two variables (y,
> x)? whith third value (z) written on the plot? After
> that i would like to add a line (Y=0.7*(x-20)) to the graph.
>
>
>
>
> I tried
>
> plot(x~y)
>
>
>
> but there is no command for the third vairable to be shown
> on the graph
>
> also i can't find a way to add a Y=x*(0.7-20) to the
> chart.
>
>
>
> Thanks, m
>
>
> ??? [[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.
>