Learn R Programming

healthyR (version 0.1.4)

gartner_magic_chart_plt: Gartner Magic Chart - Plotting of two continuous variables

Description

Plot a Gartner Magic Chart of two continuous variables

Usage

gartner_magic_chart_plt(
  .data,
  .x_col,
  .y_col,
  .y_lab,
  .x_lab,
  .plt_title,
  .tl_lbl,
  .tr_lbl,
  .br_lbl,
  .bl_lbl
)

Arguments

.data

The data set you want to plot

.x_col

The x-axis for the plot

.y_col

The y-axis for the plot

.y_lab

The y-axis label

.x_lab

The x-axis label

.plt_title

The title of the plot

.tl_lbl

The top left label

.tr_lbl

The top right label

.br_lbl

The bottom right label

.bl_lbl

The bottom left label

Value

A ggplot plot

Details

  • Supply a data frame with at least two continuous variables to plot against each other

Examples

Run this code
# NOT RUN {
gartner_magic_chart_plt(
  .data = tibble::tibble(x = rnorm(100, 0, 1), y = rnorm(100,0,1))
  , .x_col = x
  , .y_col = y
  , .x_lab = "los"
  , .y_lab = "ra"
  , .plt_title = "tst"
  , .tr_lbl = "High RA-LOS"
  , .tl_lbl = "High RA"
  , .bl_lbl = "Leader"
  , .br_lbl = "High LOS"
)

# }

Run the code above in your browser using DataLab