ggplot2 ile Orta Düzey Veri Görselleştirme
Rick Scavetta
Founder, Scavetta Academy
| Aşırı üst üste binme nedeni | Çözümler | |
|---|---|---|
| 1. | Büyük veri kümeleri | Alfa harmanlama, içi boş daireler, nokta boyutu |
| 2. | Tek eksende hizalı değerler | Yukarıdakiler + konumu değiştirin |
| 3. | Düşük hassasiyetli veri | Konum: jitter |
| 4. | Tamsayı veri | Konum: jitter |
| Aşırı üst üste binme nedeni | Çözümler | Burada... | |
|---|---|---|---|
| 1. | Büyük veri kümeleri | Alfa harmanlama, içi boş daireler, nokta boyutu | |
| 2. | Tek eksende hizalı değerler | Yukarıdakiler + konumu değiştirin | |
| 3. | Düşük hassasiyetli veri | Konum: jitter | geom_count() |
| 4. | Tamsayı veri | Konum: jitter | geom_count() |
p <- ggplot(iris, aes(Sepal.Length,
Sepal.Width))
p + geom_point()

p + geom_jitter(alpha = 0.5,
width = 0.1,
height = 0.1)

p +
geom_count()

| geom_ | stat_ |
|---|---|
geom_count() |
stat_sum() |
p +
stat_sum()

ggplot(iris, aes(Sepal.Length,
Sepal.Width,
color = Species)) +
geom_count(alpha = 0.4)

ggplot(iris, aes(Sepal.Length,
Sepal.Width,
color = Species)) +
geom_count(alpha = 0.4)
library(AER)
data(Journals)
p <- ggplot(Journals,
aes(log(price/citations),
log(subs))) +
geom_point(alpha = 0.5) +
labs(...)
p

p +
geom_quantile(quantiles =
c(0.05, 0.50, 0.95))

| geom_ | stat_ |
|---|---|
geom_count() |
stat_sum() |
geom_quantile() |
stat_quantile() |
ggplot2 ile Orta Düzey Veri Görselleştirme