10 Facets - separarea graficelor în funcție de o variabilă

grafic +
  facet_wrap(~month)
## `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
## Warning: Removed 1 rows containing non-finite values (`stat_bin()`).
## Warning: Removed 1 rows containing non-finite values (`stat_density()`).
ggplot(data=weather, aes(x=temp))+
  geom_histogram(fill='tomato')+
  facet_wrap(~month, ncol=3)
## `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
## Warning: Removed 1 rows containing non-finite values (`stat_bin()`).
ggplot(data=weather, aes(x=temp))+
  geom_histogram(fill='tomato')+
  facet_wrap(~month, nrow=3)
## `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
## Warning: Removed 1 rows containing non-finite values (`stat_bin()`).
ggplot(data=weather, aes(x=temp))+
  geom_histogram(fill='tomato')+
  facet_grid(month~origin)
## `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
## Warning: Removed 1 rows containing non-finite values (`stat_bin()`).
ggplot(data=subset(weather, month<=4), aes(x=temp))+
  geom_histogram(fill='tomato')+
  facet_grid(month~origin)
## `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.