[R] Text Labels on plots in R

Christophe Declercq cdeclercq at nordnet.fr
Wed Apr 3 18:12:50 CEST 2002


> De : owner-r-help at stat.math.ethz.ch
> [mailto:owner-r-help at stat.math.ethz.ch]
> De la part de ggrothendieck at yifan.net
> Envoyé : mercredi 3 avril 2002 17:11
> Objet : Re: [R] Text Labels on plots in R
>
>
> Suppose
>
> y <- c(5:2,4)
> names(y) <- c("Dave", "Tim", "Ian", "Steve", "Paul")

[...]

> On 3 Apr 2002 at 11:26, Danny Ruttle wrote:
>
> > Hi
> >
> > Is it possible to plot values against strings, i.e. the x
> axis has people's
> > names and the
> > y axis as values, as shown below:
[...]

Perhaps, what Danny wants is just:

> stripchart(y~names(y), vertical=TRUE)

Hope it helps.

Christophe
--
Christophe DECLERCQ, MD
Observatoire Régional de la Santé Nord-Pas-de-Calais
13, rue Faidherbe 59046 LILLE Cedex FRANCE
Phone +33 3 20 15 49 24
Fax   +33 3 20 55 92 30
E-mail c.declercq at orsnpdc.org


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list