样式
样式的目标是创建主题并将其应用于基本图。
安装
您可以使用以下命令从github安装样式:
# install.packages("devtools")
devtools :: install_github( " ropenscilabs/styles " )
例子
让我们将默认绘图参数与样式进行比较:
library( styles )
library( default )
plot_mat <- matrix ( 1 : 8 , nrow = 2 , byrow = FALSE )
layout( plot_mat )
# plot with plot defaults; without setting a style
example_plots()
# plot with a style
style( better )
example_plots()
您可以预览内部样式
评论0
最新资源