theme_classicがggplot2に適用された後、テーマの他のコンテンツは変更できません
psは今日、彼が追加したテーマの変更されたコンテンツは無効であることがわかりましたが、半日後にそれを見つけました,,,,
次の2つのコードシーケンスに注意してください *
* 1
ggplot(plotdata, aes(标线, range,fill=标线)) +
geom_boxplot()+
xlab("标线类型")+ ylab("极差")+
theme(legend.position = "none")+
theme(axis.text.x=element_text(angle=90, hjust=1))+
theme_classic() ##########################重点
2
ggplot(plotdata, aes(标线, range,fill=标线)) +
geom_boxplot()+
xlab("标线类型")+ ylab("极差")+
theme_classic()+ ##########################重点
theme(legend.position = "none")+
theme(axis.text.x=element_text(angle=90, hjust=1))
最後に、ggplot2のコードの順序も非常に重要な
ps であることがわかりました。おそらくこれが私の基礎が不十分な理由です,,,,,,