data_preparation {OrigamiPlot}R Documentation

Function to prepare the data into designated format

Description

Function to prepare the data into designated format

Usage

data_preparation(df, min_value = NULL)

Arguments

df

dataset with each column representing a variable name paired with its value and each row representing a graph

min_value

auxiliary point in the graph, default is min(df)/2

Details

This function takes a data frame as input and output a list of formatted data frames. It introduces an auxiliary point for each variable, positioned equidistantly from the central point along auxiliary axes. Users can customize the distance from the point to the center. Without user customization, the distance defaults to half of the smallest value within the dataset.

Value

df_list

Examples

data(sucra)
data_preparation(sucra,min_value=0.15)


[Package OrigamiPlot version 0.1.0 Index]