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
On this page of the site you can watch the video online Control Point Border Thickness of ggplot2 Scatterplot in R (Example) | Increase or Decrease Borders with a duration of hours minute second in good quality, which was uploaded by the user Statistics Globe 06 November 2020, share the link with friends and acquaintances, this video has already been watched 385 times on youtube and it was liked by 12 viewers. Enjoy your viewing!