शुरू करेंमुफ़्त में शुरू करें

हीटमैप के विकल्प

हीटमैप के कई विकल्प होते हैं। सबसे अच्छा विकल्प आपके डेटा और उससे बतानी वाली कहानी पर निर्भर करता है। अगर समय का घटक हो, तो सबसे सीधा विकल्प लाइन प्लॉट होता है.

यह अभ्यास पाठ्यक्रम का हिस्सा है

इंटरमीडिएट Data Visualization with ggplot2

पाठ्यक्रम देखें

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# The heat map we want to replace
# Don't remove, it's here to help you!
ggplot(barley, aes(x = year, y = variety, fill = yield)) +
  geom_tile() +
  facet_wrap( ~ site, ncol = 1) +
  scale_fill_gradientn(colors = brewer.pal(9, "Reds"))

# Using barley, plot yield vs. year, colored and grouped by variety
___ +
  # Add a line layer
  ___ +
  # Facet, wrapping by site, with 1 row
  facet_wrap( ~ site, nrow = 1)
कोड संपादित करें और चलाएँ