Sunburst Plot
Usage
sunburst(
data,
textorientation = c("horizontal", "radial", "tangential"),
verbose = FALSE,
unit = "N"
)Arguments
- data
data.frame with three columns: Label, Parent and Value. See details for more information
- textorientation
orientation sunburst labels. One of "horizontal", "radial", "tangential" (string)
- verbose
verbose (boolean)
- unit
would does count represent, e.g. 'reads' or 'samples' (string)
Details
| Column | Description | Type |
| Label | All the terms to be represented in the sunburst plot | character |
| Parent | Parent of Label | character |
| Value | Value - will determine size of segment in plot | numeric |
Examples
data = data.frame(
Label=c("E. coli","S. enterica", "L. monocytogenes", "Escherichia", "Salmonella", "Listeria"),
Parent = c("Escherichia", "Salmonella", "Listeria", "Bacteria", "Bacteria", "Bacteria"),
Value = c(20, 10, 100,0, 0, 0)
)
sunburst(data)