Learn R Programming

RHC (version 0.1.0)

plot_samples: Plot Samples

Description

This function creates graphs for the inputs of the RHC_function model.

Value

A list of sample charts.

Arguments

final_data_st

A data frame containing standardized data from the first function.

row_indices

A vector of row indices specifying which rows to use for creating sample plots.

plot_title_prefix

A prefix for the plot titles (default is "Sample").

ncol

Number of columns for arranging the plots. Default is 3.

Details

The function takes input data and specific row indices, creates sample charts, and returns the plots.

Examples

Run this code
data(canopy_oc_file)
data(trait_file)
final_data_st <- prepare_RHC_data(canopy_oc_file, trait_file)
row_indices <- 1:17
plots.samples <- plot_samples(final_data_st, row_indices, plot_title_prefix = "Sample", ncol = 3)

Run the code above in your browser using DataLab