ggplot2 ile Orta Düzey Veri Görselleştirme
Rick Scavetta
Founder, Scavetta Academy
ggplot(msleep2, aes(bodywt_log,
brainwt_log)) +
geom_point(alpha = 0.6, shape = 16) +
facet_grid(rows = vars(vore),
cols = vars(conservation),
scales = "free")

Kullanım durumları:
facet_grid()'deki gibi sadece satır veya sütuna göre değilggplot(msleep2, aes(bodywt_log,
brainwt_log)) +
geom_point(alpha = 0.6, shape = 16) +
facet_wrap(vars(vore, conservation),
scales = "free")

Kullanım durumları:
facet_grid()'deki gibi sadece satır veya sütuna göre değilggplot(msleep2, aes(bodywt_log,
brainwt_log)) +
geom_point(alpha = 0.6, shape = 16) +
facet_wrap(vars(order))

ggplot(msleep2, aes(bodywt_log,
brainwt_log)) +
geom_point(alpha = 0.6, shape = 16) +
facet_grid(rows = vars(vore),
cols = vars(conservation),
scales = "free")

ggplot(msleep2, aes(bodywt_log,
brainwt_log)) +
geom_point(alpha = 0.6, shape = 16) +
facet_grid(rows = vars(vore),
cols = vars(conservation),
scales = "free",
margins = TRUE)

ggplot(msleep2, aes(bodywt_log,
brainwt_log)) +
geom_point(alpha = 0.6, shape = 16) +
facet_grid(rows = vars(vore),
cols = vars(conservation),
scales = "free",
margins = "conservation")

ggplot2 ile Orta Düzey Veri Görselleştirme