问题描述:plot时,出现的错误01
> ggplot(religions_long,
+ aes(State, value, fill = variable)) +
+ geom_bar(stat = "identity") +
+ coord_flip()
> Error in .Call.graphics(C_palette2, .Call(C_palette2, NULL)) :
invalid graphics state
解决方案:可能是作图太多,R无法承受,清空所有绘图即可