| Title: | Hydroponic Data Analysis Tools |
|---|---|
| Description: | Provides statistical and graphical tools for the analysis of hydroponic crop production data. The package includes functions for descriptive statistical analysis, data visualization, correlation analysis, heatmap generation, and graphical summaries of plant growth and nutrient-related variables. These tools support researchers, students, and practitioners in evaluating crop performance and environmental conditions in hydroponic cultivation systems. The package utilizes standard statistical methods implemented in R for data exploration and visualization. Methods are described in James et al. (2021, ISBN:9781071614172) and Wickham (2016, ISBN:9783319242750). |
| Authors: | Khalid Ul Islam Rather [aut, cre] |
| Maintainer: | Khalid Ul Islam Rather <[email protected]> |
| License: | GPL-3 |
| Version: | 1.0.3 |
| Built: | 2026-06-24 13:21:56 UTC |
| Source: | https://github.com/cran/HydroPonicsK |
Plant Height Plot
height_plot(data)height_plot(data)
data |
Data frame |
Plot
Performs one-way analysis of variance (ANOVA) for a response variable across treatment groups.
hydro_anova(data, response, treatment)hydro_anova(data, response, treatment)
data |
A data frame. |
response |
Character. Name of response variable. |
treatment |
Character. Name of treatment/grouping variable. |
An object of class "aov".
hydro_anova(lettuce_data, "Height_cm", "Treatment")hydro_anova(lettuce_data, "Height_cm", "Treatment")
Performs hierarchical clustering using Ward's method on scaled numeric variables.
hydro_cluster(data)hydro_cluster(data)
data |
A data frame containing numeric variables. |
An object of class "hclust".
hydro_cluster(lettuce_data)hydro_cluster(lettuce_data)
Computes a correlation matrix for numeric variables in a dataset.
hydro_correlation(data)hydro_correlation(data)
data |
A data frame containing numeric variables. |
A correlation matrix.
hydro_correlation(lettuce_data)hydro_correlation(lettuce_data)
Creates a heatmap for hydroponic crop data.
hydro_heatmap(data)hydro_heatmap(data)
data |
A numeric matrix or data frame. |
A heatmap plot.
Performs principal component analysis on hydroponic crop data.
hydro_pca(data)hydro_pca(data)
data |
A numeric data frame or matrix. |
A PCA object produced by prcomp().
Hydroponic Summary Statistics
hydro_summary(data, variable)hydro_summary(data, variable)
data |
Data frame |
variable |
Variable name |
Summary statistics
Performs Tukey Honest Significant Difference post-hoc test on an ANOVA model.
hydro_tukey(model)hydro_tukey(model)
model |
An object of class "aov". |
A TukeyHSD object.
model <- hydro_anova(lettuce_data, "Height_cm", "Treatment") hydro_tukey(model)model <- hydro_anova(lettuce_data, "Height_cm", "Treatment") hydro_tukey(model)
A controlled hydroponic lettuce experiment dataset used for demonstrating statistical analysis and visualization functions in the package.
lettuce_datalettuce_data
A data frame with 50 observations and 12 variables:
Unique identifier for each plant
Experimental treatment applied
Replication number of experimental unit
Days after transplanting
Plant height in centimeters
Root length in centimeters
Number of leaves per plant
Fresh biomass weight in grams
Dry biomass weight in grams
Nutrient solution pH level
Electrical conductivity (mS/cm)
Ambient temperature (°C)
Simulated/experimental hydroponic lettuce growth dataset used for package examples and method validation.
Computes summary statistics for hydroponic nutrient solution parameters.
nutrient_stats(data)nutrient_stats(data)
data |
A data frame containing pH, EC_mScm, and Temp_C variables. |
A data frame with mean and standard deviation values.
nutrient_stats(lettuce_data)nutrient_stats(lettuce_data)
Computes the relative growth rate (RGR) based on initial and final weight and time measurements.
relative_growth_rate(W1, W2, T1, T2)relative_growth_rate(W1, W2, T1, T2)
W1 |
Numeric. Initial weight (> 0). |
W2 |
Numeric. Final weight (> 0). |
T1 |
Numeric. Initial time. |
T2 |
Numeric. Final time. |
Numeric value of relative growth rate.
relative_growth_rate(10, 20, 1, 5)relative_growth_rate(10, 20, 1, 5)
Computes the Stress Tolerance Index (STI) for yield under stress and non-stress conditions.
stress_tolerance_index(Ys, Yp)stress_tolerance_index(Ys, Yp)
Ys |
Numeric vector. Yield under stress condition. |
Yp |
Numeric vector. Yield under non-stress (optimal) condition. |
Numeric vector of STI values.
stress_tolerance_index(c(10, 12, 9), c(15, 18, 14))stress_tolerance_index(c(10, 12, 9), c(15, 18, 14))
Computes Water Use Efficiency (WUE) as Yield per unit of water consumed.
water_use_efficiency(Yield, Water)water_use_efficiency(Yield, Water)
Yield |
Numeric vector. Crop yield values. |
Water |
Numeric vector. Water consumption values. |
Numeric vector of WUE values.
water_use_efficiency(c(10, 12, 15), c(2, 3, 5))water_use_efficiency(c(10, 12, 15), c(2, 3, 5))