TrelliscopeJS के साथ फैसेटिंग

R में Trelliscope के साथ बिग डेटा का विज़ुअलाइज़ेशन

Ryan Hafen

Author, TrelliscopeJS

TrelliscopeJS के साथ फैसेटिंग

R में Trelliscope के साथ बिग डेटा का विज़ुअलाइज़ेशन

Gapminder डेटा

library(gapminder)
head(gapminder)
# A tibble: 6 x 6
  country     continent  year lifeExp      pop gdpPercap
  <fct>       <fct>     <int>   <dbl>    <int>     <dbl>
1 Afghanistan Asia       1952    28.8  8425333       779
2 Afghanistan Asia       1957    30.3  9240934       821
3 Afghanistan Asia       1962    32.0 10267083       853
4 Afghanistan Asia       1967    34.0 11537966       836
5 Afghanistan Asia       1972    36.1 13079460       740
6 Afghanistan Asia       1977    38.4 14880372       786
R में Trelliscope के साथ बिग डेटा का विज़ुअलाइज़ेशन

देश-वार समय के साथ जीवन प्रत्याशा

ggplot(gapminder, aes(year, lifeExp, group = country)) +
  geom_line()

R में Trelliscope के साथ बिग डेटा का विज़ुअलाइज़ेशन

महाद्वीप पर फैसेटिंग

ggplot(gapminder, aes(year, lifeExp, group = country, color = continent)) +
  geom_line() +
  facet_wrap(~ continent, nrow = 1) +
  guides(color = FALSE)

R में Trelliscope के साथ बिग डेटा का विज़ुअलाइज़ेशन

देश पर फैसेटिंग

ggplot(gapminder, aes(year, lifeExp)) +
  geom_line() +
  facet_wrap(~ country + continent)

R में Trelliscope के साथ बिग डेटा का विज़ुअलाइज़ेशन

TrelliscopeJS के साथ फैसेटिंग

facet_wrap() को facet_trelliscope() से बदलना जितना सरल.

facet_wrap() की तरह, पंक्तियाँ और कॉलम nrow और ncol से नियंत्रित करें.

अतिरिक्त विकल्प:

  • facet_wrap() की तरह nrow और ncol से ग्रिड लेआउट तय करें.
  • डिस्प्ले को एक नाम (name) और विवरण (desc) दें.
  • डिस्प्ले कहाँ सेव होना है, यह path से तय करें.
R में Trelliscope के साथ बिग डेटा का विज़ुअलाइज़ेशन

अभ्यास करते हैं!

R में Trelliscope के साथ बिग डेटा का विज़ुअलाइज़ेशन

Preparing Video For Download...