Control Point Border Thickness of ggplot2 Scatterplot in R (Example) | Increase or Decrease Borders

Pubblicato il: 06 novembre 2020
sul canale di: Statistics Globe
385
12

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


In questa pagina del sito puoi guardare il video online Control Point Border Thickness of ggplot2 Scatterplot in R (Example) | Increase or Decrease Borders della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Statistics Globe 06 novembre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 385 volte e gli è piaciuto 12 spettatori. Buona visione!