Learn R Programming

aridagri (version 2.0.3)

arid_plot: Visualization Functions for aridagri

Description

Generate publication-quality plots for aridagri analyses.

Usage

arid_plot(x, type = "bar", ...)

Value

A ggplot2 object

Arguments

x

An object from aridagri analysis functions

type

Plot type: "bar", "line", "interaction", "boxplot"

...

Additional arguments passed to plotting functions

Author

Lalit Kumar Rolaniya, Ram Lal Jat, Monika Punia, Raja Ram Choudhary

Examples

Run this code
df <- data.frame(
  yield = c(1200, 1350, 1100, 1450, 1280),
  wue = c(4.2, 4.8, 3.9, 5.1, 4.5),
  protein = c(22.1, 23.5, 21.8, 24.2, 22.9)
)
result <- correlation_analysis(df, plot = FALSE)
arid_plot(result)

Run the code above in your browser using DataLab