Writing Figures to a File
pdf("boxplot.pdf")
ggplot(data=df, aes(x= genotype, y=samplemeans, fill=celltype)) +
geom_boxplot() +
ggtitle('Genotype differences in average gene expression') +
xlab('Genotype') +
ylab('Mean expression') +
theme(plot.title = element_text(size = rel(1.5)),
axis.title = element_text(size = rel(1.5)),
axis.text = element_text(size = rel(1.25)))
dev.off()Last updated
Was this helpful?
