View source: R/data_preparation.R
data_preparation | R Documentation |
Function to prepare the data into designated format
data_preparation(df, min_value = NULL)
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 |
This function takes a single-row dataframe as input and output a formatted dataframe. 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.
df
data(sucra)
data_preparation(sucra,min_value=0.15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.