Control Point Border Thickness of ggplot2 Scatterplot in R (Example) | Increase or Decrease Borders
Автор: Statistics Globe
Загружено: 2020-11-06
Просмотров: 376
Описание:
How to modify the thickness of points in a ggplot2 scatterplot in the R programming language. More details: https://statisticsglobe.com/control-p...
R code of this video:
data <- data.frame(x = 1:5, # Create example data
y = 1:5)
install.packages("ggplot2") # Install ggplot2 package
library("ggplot2") # Load ggplot2 package
ggplot(data, aes(x, y)) + # Create scatterplot
geom_point(fill = "#1b98e0",
color = "#353436",
size = 10,
shape = 21)
ggplot(data, aes(x, y)) + # Increase thickness of point borders
geom_point(fill = "#1b98e0",
color = "#353436",
size = 10,
shape = 21,
stroke = 5)
Follow me on Social Media:
Twitter: / joachimschork
Facebook: / statisticsglobecom
Reddit: / joachimschork
Pinterest: https://www.pinterest.de/JoachimSchork
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: