area_calculation {OrigamiPlot}R Documentation

Function to calculate area of the generated polygon

Description

Function to calculate area of the generated polygon

Usage

area_calculation(df)

Arguments

df

dataset processed with data_preparation or in the designated form

Details

This function serves as a supplementary tool to compute the area of a generated origami plot when the maximal area achievable within the defined parameters (when all the variables attain 1) is set to 1. The resulting calculated area offers an interpretation of the proportion between the actual origami plot and the maximum achievable area. An example of calculated area is shown in Figure 1.

Value

area

Examples

data(sucra)
df_list <- data_preparation(sucra, min_value = 0.15)
area_calculation(df_list[[1]])


[Package OrigamiPlot version 0.1.0 Index]