[R] custom tick mark labels on bwplot

Scot W McNary smcnary at fellspt.charm.net
Tue Apr 30 23:31:04 CEST 2002


That does it!  Thanks, Scot


On Tue, 30 Apr 2002, Deepayan Sarkar wrote:

> > I've been playing around with strsplit:
> >
> > lab1<-unlist(strsplit(milk$X.LABEL, "-"))
> >
> > to try to get the label to pull off the part of X.LABEL before the
> >
> > "- times/month" or "- times/mo"
> >
> > that appears in each label.  That should give me a shorter but still
> > sufficiently descriptive label.
> >
> > However, I can't seem to figure out how to get just that first part, since
> > what I end up with is a list:
>
>
> unlist(lapply(strsplit(dtf$X.LABEL, "-"), "[", 1))
>
> seems to work. abbreviate() can abbreviate strings, but the results
> might not be informative enough.
>
>

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