[R] Boxplot, formula interface, and labels.
istazahn at gmail.com
Thu Sep 28 19:27:00 CEST 2017
mybp <- boxplot(count ~ geno * tissue, data = mydata, plot = FALSE)
mybp$names <- gsub("\\.", "\n", mybp$names)
See ?boxplot for details.
On Thu, Sep 28, 2017 at 12:40 PM, Ed Siefker <ebs15242 at gmail.com> wrote:
> I have data I'd like to plot using the formula interface to boxplot.
> I call boxplot like so:
> with(mydata, boxplot(count ~ geno * tissue))
> I get a boxplot with x axis labels like "wt.kidney". I would like
> to change the '.' to a newline. Where is this separator configured?
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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