वितरण: भाग एक

R में Visualization की Best Practices

Nick Strayer

Instructor

डिस्ट्रिब्यूशन डेटा क्या है?

  • कई 'observations'
  • आम तौर पर किसी population का sample

R में Visualization की Best Practices

डिस्ट्रिब्यूशन्स क्यों महत्त्वपूर्ण हैं

  • डेटा कलेक्शन या क्लीनिंग की गलतियाँ दिख सकती हैं
  • मॉडल में किसी वैरिएबल को control करने की ज़रूरत दिखा सकती हैं
  • डेटा के प्रति ईमानदार रहना

R में Visualization की Best Practices

स्टैंडर्ड प्लॉट्स

Histogram

  • एक समय में एक डिस्ट्रिब्यूशन के लिए अच्छा
  • यह चैप्टर

boxplot

  • कई डिस्ट्रिब्यूशन्स की तुलना के लिए
  • अगला चैप्टर

R में Visualization की Best Practices

Maryland speeding data

  • 2017 में Montgomery County, Maryland में जारी speeding टिकट्स
  • स्रोत: data.montgomerycountymd.gov
md_speeding

R में Visualization की Best Practices

ggplot2 में histogram बनाना

  • geom_histogram()
  • अपने आप डेटा को bins में रखता है
  • बस x aesthetic दें
md_speeding %>% 
  filter(vehicle_color == 'BLUE') %>% 
  ggplot(aes(x = speed)) +
  geom_histogram()
R में Visualization की Best Practices

R में Visualization की Best Practices

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

R में Visualization की Best Practices

Preparing Video For Download...