Learn R Programming

OrigamiPlot (version 0.1.0)

area_calculation: Function to calculate area of the generated polygon

Description

Function to calculate area of the generated polygon

Usage

area_calculation(df)

Value

area

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.

Examples

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

Run the code above in your browser using DataLab