legend
設置legend位置和title
ggplot(df, aes(x, y, colour=g)) +
geom_line(stat="identity") +
theme(legend.position="bottom") +
theme(legend.title=element_blank())
ggplot(df, aes(x, y, colour=g)) +
geom_line(stat="identity") +
theme(legend.position="bottom") +
theme(legend.title=element_blank())
學習筆記,僅供參考 repeat循環 repeat循環可以重複執行相同的代碼,直到滿足停止條件。 語法 repeat { 命令行 if(關係表達式) { break #關係表達式