How to plot Informative beautiful plots in R: Marginal plots using ggExtra and aplot packages

Описание к видео How to plot Informative beautiful plots in R: Marginal plots using ggExtra and aplot packages

#rprogramming #ggplot2 #ggExtra #ggMarginal #aplot #scatterplot #correlation #distribution #datavisualization

library(ggplot2)

library(ggExtra)

library(aplot)

p = ggplot(iris, aes(Sepal.Length, Petal.Length, color=Species))+
geom_point()+
theme_classic()+
theme(legend.position = c(0.7, 0.25))


ggMarginal(p, groupFill = TRUE, type="densigram", margin="y")


aplot

p2 = ggplot(iris, aes(Sepal.Length, fill=Species))+
geom_density(alpha=0.3)+
theme_void()+
theme(legend.position = "none")

p3= ggplot(iris, aes(1,Petal.Length, fill=Species))+
geom_boxplot(alpha=0.3)+
theme_void()+
theme(legend.position = "none")



library(ggbeeswarm)

p4 = ggplot(iris, aes(1,Petal.Length, color=Species))+
geom_beeswarm()+
theme_void()+
theme(legend.position = "none")



Facebook page:
  / rajendrachoureisc  

Mail Id:
[email protected]

youtube playlist:
   • R programming tutorials  

Комментарии

Информация по комментариям в разработке