getLabelProportions: Get Label Proportions

Description Usage Arguments Value Examples

View source: R/getLabelProportions.R

Description

A function that generates an interactiev pie chart that describes the balance in labels of the dataset that's provided to it

Usage

1

Arguments

labelDF

A dataframe with at least the columns: image_key, label_1, label_2

Value

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

Examples

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)

gabmorg/labelMe documentation built on Dec. 8, 2019, 12:36 p.m.