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.pav...@gi-zrmk.si> schrieb am Mi, 4.5.2011: > Von: Matevž Pavlič <matevz.pav...@gi-zrmk.si> > Betreff: [R] scatter plot with Z value > An: r-help@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@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.