परिवर्तन को उभारने के लिए कस्टम प्लॉट

Tidyverse में डेटा के साथ संवाद

Timo Grossenbacher

Data Journalist

Tidyverse में डेटा के साथ संवाद

डॉट प्लॉट

1 New York Times (https://www.nytimes.com/2017/11/17/upshot/income-inequality-united-states.html){{0}}
Tidyverse में डेटा के साथ संवाद

ggplot2 के साथ डॉट प्लॉट

ggplot((ilo_data %>% filter(year == 2006))) +
  geom_dotplot(aes(x = working_hours)) +
  labs(x = "Working hours per week",
       y = "Share of countries")

Tidyverse में डेटा के साथ संवाद

`geom_path()` फंक्शन

?geom_path

geom_path() डेटा में अवलोकनों को उनकी मौजूदा क्रम में जोड़ता है।

ilo_data %>% 
    arrange(country)
# A tibble: 34 x 4
     country   year hourly_compensation working_hours
       <fct>  <fct>               <dbl>         <dbl>
1    Austria   1996               24.75      31.99808
2    Austria   2006               30.46      31.81731
3    Belgium   1996               25.25      31.65385
4    Belgium   2006               31.85      30.21154
5 Czech Rep.   1996                2.94      39.72692
# ... with 29 more rows
Tidyverse में डेटा के साथ संवाद

`ggplot2` के साथ डॉट प्लॉट: `geom_path()` फंक्शन

ggplot() +
    geom_path(aes(x = numeric_variable, y = numeric_variable))
ggplot() +
    geom_path(aes(x = numeric_variable, y = factor_variable))
ggplot() +
    geom_path(aes(x = numeric_variable, y = factor_variable),
                arrow = arrow(___))
Tidyverse में डेटा के साथ संवाद

आइए geom_path आज़माएँ!

Tidyverse में डेटा के साथ संवाद

Preparing Video For Download...