R ile Keşifsel Veri Analizi
Andrew Bray
Assistant Professor, Reed College
ggplot(cars, aes(x = hwy_mpg)) +
geom_histogram()
`stat_bin()` `bins = 30` kullanıyor. Daha iyi bir değer için `binwidth` seçin.
Uyarı mesajı:
Finite olmayan değerler içeren 14 satır kaldırıldı (stat_bin).

ggplot(cars, aes(x = hwy_mpg)) +
geom_histogram() +
facet_wrap(~pickup)
`stat_bin()` `bins = 30` kullanıyor. Daha iyi bir değer için `binwidth` seçin.
Uyarı mesajı:
Finite olmayan değerler içeren 14 satır kaldırıldı (stat_bin).

cars2 <- cars %>%
filter(eng_size < 2.0)
ggplot(cars2, aes(x = hwy_mpg)) +
geom_histogram()
cars %>%
filter(eng_size < 2.0) %>%
ggplot(aes(x = hwy_mpg)) +
geom_histogram()
cars %>%
filter(eng_size < 2.0) %>%
ggplot(aes(x = hwy_mpg)) +
geom_histogram()
`stat_bin()` `bins = 30` kullanıyor. Daha iyi bir değer için `binwidth` seçin.

cars %>%
filter(eng_size < 2.0) %>%
ggplot(aes(x = hwy_mpg)) +
geom_histogram(binwidth = 5)

cars %>%
filter(eng_size < 2.0) %>%
ggplot(aes(x = hwy_mpg)) +
geom_density()

cars %>%
filter(eng_size < 2.0) %>%
ggplot(aes(x = hwy_mpg)) +
geom_density(bw = 5)

R ile Keşifsel Veri Analizi