Open araikes opened 4 weeks ago
I figured it out. The vignette is out of date. Should be:
> ggplot(dorr_data, aes(x = sex, y = tbv, fill = sex)) +
+ stat_slab(side = "left", scale = 0.75, position = "dodge") +
+ stat_dotsinterval(scale = 0.5, position = "dodge", alpha = 0.5) +
+ stat_pointinterval(.width = .5, # set to a scalar to draw only one label instead of two
+ position = position_dodge(width = 1),
+ size = 8
+ ) +
+ scale_fill_manual(values = c("#AB0520", "#0C234B")) +
+ facet_wrap( ~ allele_header) +
+ scale_y_continuous(limits = c(400, 525), expand = c(0,0),
+ breaks = seq(400,525,25)) +
+ labs(x = "",
+ y = expression(paste("Total brain volume (",mm^3,")", sep = ""))) +
+ guides(y = "prism_offset") +
+ theme(
+ plot.title = element_text(vjust = -0.5, size = 12), # plot title size and position
+ axis.title.y = element_text(size = 15),
+ axis.text.y = element_text(size=12), # y-axis text size
+ axis.text.x = element_text(size = 12), # x-axis text size/face
+ strip.text = element_text(size = 15),
+ legend.position = "none")
Hi @csdaw,
I really like this package but have run into an issue. I have
ggprism v 1.0.5
andggplot2 v 3.5.1
.I get the following:
The resultant plot has the right y-axis range but doesn't produce brackets:
Any thoughts on getting this work?