我正在尝试使用自定义包fishtaco制作情节。请在这里下载: download package
install.packages("<path to downloaded package.tar.gz", repos = NULL,type="source")
library(FishTacoPlot)
p <- MultiFunctionTaxaContributionPlots(input_dir="<path_to_package>/examples", input_prefix="HMP_fishtaco",
input_taxa_taxonomy="<path_to_package>/examples/HMP_TAXONOMY.tab", sort_by="list", plot_type="bars",
input_function_filter_list=c("ko00020", "ko00540","ko02040"), add_predicted_da_markers=TRUE, add_original_da_markers=TRUE)
从图中可以看出,很难区分蓝色阴影。有没有办法修改上面代码生成的ggplot2对象?我尝试添加手动色标:
p + scale_color_manual(values = c("red", "black", "dodgerblue2", "antiquewhite", "aquamarine", so on for as many legend
variables))
但这并未改变默认的基础配色方案。我无法更改包装,但是我可以更改ggplot2颜色吗?