R基础教程可先阅读:R语言编程基础第一篇:语法基础
ggplot2绘制小提琴图
library(ggplot2)
library(gplots)
library(RColorBrewer)
options...cancers")
print(p)
?...#changeing params
p <- ggplot(data,aes(CANCER,EXP))+
geom_violin(adjust=1,trim=T)+
geom_boxplot(width...=0.3,fill="black",alpha=1,outlier.colour=NA)+
stat_summary(fun.y=mean,geom="point",fill='white',shape...alpha=1,outlier.colour=NA)+
stat_summary(fun.y=mean,geom="point",fill='white',shape=21,size=2)+
theme_bw