1
我有以下代碼:如何改變柱狀圖邊緣厚度ggplot geom_histogram()
library(ggplot2)
data(mtcars)
ggplot(mtcars, aes(x=mpg)) + geom_histogram(bins=15, colour='red')
產生本:
如前所述那裏,我怎麼能改直方圖的包圍線的粗細?
我有以下代碼:如何改變柱狀圖邊緣厚度ggplot geom_histogram()
library(ggplot2)
data(mtcars)
ggplot(mtcars, aes(x=mpg)) + geom_histogram(bins=15, colour='red')
產生本:
如前所述那裏,我怎麼能改直方圖的包圍線的粗細?
很容易的:)
ggplot(mtcars, aes(x=mpg)) + geom_histogram(bins=15, colour='red',size=3)
只需使用size
參數
geom_histogram(bins=15, colour='red',size=2)
最佳做法是去除邊界線 – HubertL
但你可以使用'大小= 3' – HubertL