R GRAPHICS TRICK !!!

Publicado el: 27 abril 2023
en el canal de: Statistics Globe
1,359
79

How to divide a ggplot2 scatterplot into groups using the facet_wrap() function in the R programming language.
R code of this video:

set.seed(7462722)
data <- data.frame(
x = c(rnorm(300),
rnorm(300, 3, 2),
rnorm(300, 0, 5)),
y = c(rnorm(300),
rnorm(300, 1, 5),
rnorm(300, 3, 0.5)),
group = rep(LETTERS[1:3],
each = 300)
)

library("ggplot2")

ggp <- ggplot(data, aes(x, y)) +
geom_point()
ggp

ggp +
facet_wrap(group ~ .)

Follow me on Social Media:
Facebook – Statistics Globe Page:   / statisticsglobecom  
Facebook – R Programming Group for Discussions & Questions:   / statisticsglobe  
Facebook – Python Programming Group for Discussions & Questions:   / statisticsglobepython  
LinkedIn – Statistics Globe Page:   / statisticsglobe  
LinkedIn – R Programming Group for Discussions & Questions:   / 12555223  
LinkedIn – Python Programming Group for Discussions & Questions:   / 12673534  
Twitter:   / joachimschork  

Music by bensound.com


En esta página del sitio puede ver el video en línea R GRAPHICS TRICK !!! de Duración hora minuto segunda en buena calidad , que subió el usuario Statistics Globe 27 abril 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,359 veces y le gustó 79 a los espectadores. Disfruta viendo!