

After running this code is as follows:
p & lt; - ggplot (data=https://bbs.csdn.net/topics/gene2cog) +
Geom_bar (aes (x=COG,
The fill=COG_Name)) +
LABS (title="COG/KOG Function Classification",
X=", "
Y="Number of genes") +
Theme_classic () +
The theme, the plot. The title=element_text (hjust=0.5),
Legend. The title=element_blank (),
Legend. Key. Size=unit (1, "line"),
Legend. Text=element_text (size=7.5)) +
Guides (fill=guide_legend (ncol=1))
The

Illustrations and histogram of color sequence is inconsistent this kind of situation is to ask how to solve?