# cex.axis = par("cex.axis"), cex.names = par("cex.axis"), # inside = TRUE, plot = TRUE, axis.lty = 0, offset = 0, # add = FALSE, args.legend = NULL, ...) # density:底纹的密度。默认值为NULL。 # angle:设置底纹的斜率。 # xlim和ylim:设置图形x轴与y轴的范围。 # xlab...
axis(1, -4 : 4, -4 : 4) axis(2, seq(-64, 64, 4), seq(-64, 64, 4)) #文字方向水平 plot(x, y, ann = F, xaxt = "n", yaxt = "n") axis(1, -4 : 4, -4 : 4, las = 1) axis(2, seq(-64, 64, 4), seq(-64, 64, 4), las = 1) 1. 2. 3. 4. 5. ...
pbgcol=FALSE, #点的边框是黑色的? cexsize=1.5, # 点的大小 ppch=c(21:23), # 点的形状(必须与因子的数量相匹配) legpos="bottom right", # 图例的位置 legcexsize=1.5, # 图例文字大小 legptsize=1.5, # 图例点的大小 axissize=1.5, # 设置轴的文字大小 linewidth=1.5 # 设置轴线尺寸 title(xl...
main a main title for the plot, see also title sub Sub-title (at bottom) using font, size and color par(c("font.sub", "cex.sub", "col.sub")) xlab ylab a label for the x axis, defaults to a description of x, y col the foreground color of symbols as well as lines 用于指定...
theme(plot.title = element_text(hjust = 0.5,size = 22), axis.text.x = element_text(hjust = 0.5,size = 20), axis.text.y = element_text(hjust = 0.5,size = 20), axis.title.y = element_text(size = 20), axis.title.x = element_text(size = 20), ...
()+ theme_bw() + labs(title="每日疫苗接种数量变化图", subtitle="R语言与医学生", x="日期", y="接种量")+ theme(plot.title = element_text(family = "serif", #字体 face = "bold", color = "black", size = 15, hjust = 0.5, vjust = 0.5), axis.title.y = element_text(angle ...
axis.line=element_line(colour,size,linetype,lineend,color) 其中colour为颜色;size为线的粗细;linetype为线条的类型,有“blank”, “solid”, “dashed”, “dotted”, “dotdash”, “longdash”, “twodash”等类型;lineend为线条末端的形态,有“round”, “butt” or “square”等类型。
cex.axis 坐标轴刻度文字的缩放倍数。类似于cex cex.lab 坐标轴标签(名称)的缩放倍数。类似于cex cex.main 标题的缩放倍数。类似于cex cex.sub 副标题的缩放倍数。类似于cex 用于指定字体族、字号和字样的参数 font 整数。用于指定绘图使用的字体样式。1=常规,2=粗体,3=斜体,4=粗斜体,5=符号字体(以Adobe符号...
geom_boxplot() pg_plot + scale_y_continuous(limits = c(5,6.5)) 箱形图的形状将发生变化 通过coord_cartesian参数来限定Y轴的范围,可实现放大缩小功能,并且不删减超出范围的数据,不改变箱形图的形状。 pg_plot + coord_cartesian(ylim = c(5,6.5)) ...
新画法,添加了“geom_boxplot(notch = T)”参数 ggplot(d2,aes(gene,expr,fill=stage),palette='jco',add='jitter',size=5,axis.line=2)+geom_boxplot()+xlab(NULL)+ylab("Relative expression (log2)")+theme_classic()+## 添加颜色scale_fill_brewer(palette="Dark2")+stat_compare_means()+##...