[R] scatter plot with Z value

Jannis bt_jannis at yahoo.de
Wed May 4 15:14:09 CEST 2011


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



More information about the R-help mailing list