[R] How to Label Cases in Scatterplots?

Jim Lemon jim at bitwrit.com.au
Sun Nov 25 05:51:42 CET 2012


On 11/25/2012 03:04 AM, john55 wrote:
> Hi everyone,
>
> i´m trying to graphically display distributions with r and i´m working with
> makrodata from the WVS.
>
> the command i´m using is
>
>> plot (Makrodata$v11, Makrodata$v12, xlab="Democracy Score Economist",
>> ylab= share religious people")
>
>
> i´m having an additional variable that identifies respectively labels the
> cases with its country name.
> how can i implement that variable, so it identifies the various cases in the
> scatterplot and looks like the spss screenshot i posted below?
>
> <http://r.789695.n4.nabble.com/file/n4650650/Unbenannt.gif>
>
Hi john55,
This looks like thigmophobe.labels (plotrix), although it would be hard 
to avoid label overlapping with points that crowded.

Jim




More information about the R-help mailing list