# Change font face g <-edit_plot(p, row = 9, gp =gpar(fontface = "bold")) # Change color g <-edit_plot(g, col = 8, row = 9, which = "ci", gp =gpar(col = "blue", fill = "blue")) # Change the background of the total row g <-edit_plot(g, col = 1:7, row ...
g<-edit_plot(g,row=c(2,5,10,13,17,20),gp=gpar(fontface="bold"))# Edit backgroundofrow5g<-edit_plot(g,row=5,which="background",gp=gpar(fill="darkolivegreen1"))# Insert text at top g<-insert_text(g,text="Treatment group",col=2:3,part="header",gp=gpar(fontface="bold")...
设置hjust=1和x=0.9以右对齐文本。您还可以通过使用edit_plot更改文本的对齐方式,请参阅另一个vignette中的详细信息。 同样的规则也适用于通过设置core=list(bg_params=list(fill = c(#edf8e9, #c7e9c0, #a1d99b)))来更改背景颜色。如果您想要更改内容的图形参数,请在core中更改设置;在colhead中更改设置以...
Editing plot Sometimes one may want to change the color or font face of some columns. Or one may want to insert text into certain rows. Or may want an underline to separate by group. The functionedit_plot,add_text,insert_text, andadd_bordercan achieve these. Below is how to do this:...
设置core=list(fg_params=list(hjust=0, x=0))以左对齐内容,设置rowhead=list(fg_params=list(hjust=0.5, x=0.5)以居中对齐标题。设置hjust=1和x=0.9以右对齐文本。您还可以通过使用edit_plot更改文本的对齐方式,请参阅另一个vignette中的详细信息。
Editing plot Sometimes one may want to change the color or font face of some columns. Or one may want to insert text into certain rows. Or may want an underline to separate by group. The functionedit_plot,add_text,insert_text, andadd_bordercan achieve these. Below is how to do this:...
设置core=list(fg_params=list(hjust=0, x=0))以左对齐内容,设置rowhead=list(fg_params=list(hjust=0.5, x=0.5)以居中对齐标题。设置hjust=1和x=0.9以右对齐文本。您还可以通过使用edit_plot更改文本的对齐方式,请参阅另一个vignette中的详细信息。
Editing plot Sometimes one may want to change the color or font face of some columns. Or one may want to insert text into certain rows. Or may want an underline to separate by group. The function edit_plot, add_text, insert_text, and add_border can achieve these. Below is how to do...