Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create.violinplot missing strip.cex argument? #186

Open
jarbet opened this issue Jul 19, 2024 · 0 comments · May be fixed by #188
Open

create.violinplot missing strip.cex argument? #186

jarbet opened this issue Jul 19, 2024 · 0 comments · May be fixed by #188
Assignees

Comments

@jarbet
Copy link
Contributor

jarbet commented Jul 19, 2024

create.scatterplot, create.boxplot have arguments strip.cex, strip.col, strip.fontface to change the font when making multiple panels using the | operator.

However, these arguments are missing from create.violinplot.

In the meantime, a temporary solution is to assign the plot to an object, e.g. violin <- create.violinplot(...), then you can manually add text parameters. For example:

suppressPackageStartupMessages(library(BoutrosLab.plotting.general));
data(mtcars);

violin <- create.violinplot(
    formula = mpg ~ vs | am,
    data = mtcars
    );
violin;

violin$par.strip.text$cex <- 2;
violin;

Created on 2024-07-18 with reprex v2.0.2

EDIT: also missing the layout argument for specifying # cols/rows. In the meantime, can manually add as violin$layout <- c(n.cols, n.rows);

@jarbet jarbet self-assigned this Jul 19, 2024
@jarbet jarbet linked a pull request Aug 9, 2024 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant