| plot.fair_assessment | R Documentation |
Draws a compact, readable scorecard of a fair_assessment
using base graphics (no extra package dependencies). It is the quickest way to
see an assessment: a horizontal progress bar per FAIR category (or per
metric), each annotated with its score and CMMI maturity level. See
vignette("illustrating-fairness") for worked examples.
## S3 method for class 'fair_assessment'
plot(
x,
type = c("category", "metric", "sunburst"),
colors = .fair_cat_colors,
show_maturity = (match.arg(type) == "category"),
main = NULL,
...
)
x |
A |
type |
What to draw. |
colors |
Named character vector of category fill colors, with names
|
show_maturity |
Logical; annotate each bar with its maturity level.
Defaults to |
main |
Title. Defaults to the resolved identifier (or the input id). |
... |
Ignored (for S3 method compatibility). |
x, invisibly. Called for the side effect of drawing a plot.
assess_fair(), summary.fair_assessment(), fair_example
# A stored example assessment (no network needed):
data(fair_example)
plot(fair_example)
plot(fair_example, type = "metric")
plot(fair_example, type = "sunburst")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.