#rprogramming #datavisualization #ggplot2 #highlight #subset
In this video, I have demonstrated the use of function subset() inside geom to get a subset of the data highlighted in te plot. Rearrangement of the layers also has been discussed with adjustments to alpha to make the highlighting effective.
the code
library(palmerpenguins)
head(penguins)
summary(penguins)
library(ggplot2)
ggplot(penguins,aes(flipper_length_mm,body_mass_g,color=species))+
geom_point(data=subset(penguins,island=="Biscoe"), color="red",size=3)+
geom_point()+
theme_classic()
subset(penguins,island=="Biscoe")
Facebook page:
/ rajendrachoureisc
Mail Id:
rajuchoure@gmail.com
youtube playlist:
• R programming tutorials
En esta página del sitio puede ver el video en línea Highlight subset of data in a plot using ggplot2 de Duración hora minuto segunda en buena calidad , que subió el usuario Rajendra Choure 18 mayo 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 556 veces y le gustó 22 a los espectadores. Disfruta viendo!