ggseqlogo(df1,col_scheme='clustalx')
ggseqlogo(df1,col_scheme='taylor')
7、自定义配色方案——通过make_col_scheme参数实现,有离散型与连续性两种方式
#离散型配色
col1<-make_col_scheme(chars = c("A","G", "T", "C"),
groups = c("g1","g2", "g3","g4"),
cols = c("red","green","blue","yellow"))
ggseqlogo(df1,col_scheme=col1)
#连续型配色
col2<-make_col_scheme(chars=c("A","G", "T", "C"),
values=1:4,
name='group')
ggseqlogo(df1,col_scheme=col2)