| Concept | Description |
|---|---|
| Data Visualization in R | |
| Importance of Data Visualization | Data visualization brings clarity, surfaces trends, and supports data-driven storytelling |
| Types of Presentation of Data | Line graphs, bar charts, pie charts, scatter plots, heat maps, and infographics each suit different kinds of comparison |
| Advanced Visualizations | Geographic maps, Gantt charts, and interactive dashboards extend visualization beyond a single static chart |
| Examples of Data Visualization | Government dashboards, satellite crop monitoring, mandi price portals, and research dashboards are all agriculture-relevant examples |
23 Data Visualization in R
Data visualization is the graphical representation of information and data (Hadley Wickham, 2016). By using visual elements like charts, graphs, and maps, data visualization tools provide an accessible way to see and understand trends, outliers, and patterns in data — a rainfall trend line, a district-wise yield map, a scatter of fertilizer against yield. This topic introduces the core ideas, then Topics 2D and 3D visualization work through the individual chart types in R.
23.1 Importance of Data Visualization
Clarity and efficiency: a chart explains and highlights causes faster than a raw table can — a state-wide production dashboard makes an anomalous district obvious in a way a spreadsheet doesn’t.
Trend recognition: visuals surface trends and correlations that are easy to miss in tables of numbers, supporting faster, more confident decisions — a rainfall vs. yield scatter plot can suggest an irrigation gap at a glance.
Data-driven storytelling: visuals narrate a story from the data, making the message easier to follow for a farmer, a cooperative board, or a policymaker who won’t read the underlying table.
23.2 Types of Presentation of Data
Line graphs: useful for showing change over time — a season’s rainfall, or a commodity’s mandi price, tracked week by week.
Bar charts: effective for comparing quantities across categories — production volume compared across crops, or across districts.
Pie charts: suited to showing proportions of a whole — the share of cultivated land given to each crop in a district.
Scatter plots: used to spot relationships between two variables — fertilizer use against yield, or rainfall against yield.
Heat maps: good for showing intensity across a grid — pest infestation levels across fields, or soil-moisture readings across a farm laid out on a map.
Infographics: combine several visualizations into one cohesive graphic — a crop calendar, or a one-page seasonal summary for extension workers.
23.2.1 Advanced Visualizations
Geographic maps: enhanced with data layers for spatial context — used heavily in precision agriculture and watershed planning.
Gantt charts: used to visualize a cropping calendar or an irrigation-project schedule against time.
Dashboards: interactive interfaces that update as new data arrives, letting a user filter by district, season, or crop.
23.2.2 Examples of Data Visualization
Government agriculture dashboards, such as those published by state agriculture departments, show district-wise sown area, production, and productivity.
Satellite-based crop monitoring (e.g., NDVI vegetation-health maps) visualizes crop vigor across a region using color-coded imagery.
Mandi price boards and portals chart commodity price trends across markets and time, helping farmers decide when and where to sell.
Research dashboards from agricultural universities and ICAR institutes visualize trial results — yield comparisons across varieties, treatments, or seasons.