Description Usage Arguments Value Examples
View source: R/getLabelProportions.R
A function that generates an interactiev pie chart that describes the balance in labels of the dataset that's provided to it
1 | getLabelProportions(labelDF)
|
labelDF |
A dataframe with at least the columns: image_key, label_1, label_2 |
Returns a list with 2 embedded objects: the pie chart, and a table that calculates the proportions of each factor, identifying overrepresented labels in labelDF
1 2 3 4 5 6 7 8 9 | ## Not run:
exampleDF <- data.frame (
image_key = c(1,2,3,4),
label_1 = c("Saggital", "Saggital", "Transverse", "Bladder"),
label_2 = c("Right", "Right", "Left", "NA")
)
getLabelProportions(exampleDF$chart)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.