Learn R Programming

deliberr (version 0.1.0)

plot_dri_ic: Plot DRI Intersubjective Consistency (IC)

Description

plot_dri_ic creates a dot plot of deliberation IC where each dot represents a pair of participants

Usage

plot_dri_ic(
  ic,
  title = NA_character_,
  suffix = NA_character_,
  dri = NA_real_,
  caption = NULL
)

Value

an IC plot

Arguments

ic

dataframe generated by get_dri_ic(data)

title

title of the plot

suffix

string to be added after the title separated by :

dri

numeric value generated by get_dri(ic); if omitted, get_dri is called by default

caption

a string to be displayed under the plot

See Also

get_dri_ic() for how to generate the ic parameter

get_dri() for how to generate the dri parameter

Examples

Run this code

# get post-deliberation (stage_id == 2) data from Zukunft case
data <- human_data[human_data$stage_id == 2 & human_data$case == "Zukunft", ]

# set plot optional parameters
title <- "Case Zukunft"
suffix <- "Post-Deliberation IC Plot"
caption <- "this is an example plot"

# calculate ic
ic <- get_dri_ic(data)

plot_dri_ic(ic, title, suffix, caption = caption)

Run the code above in your browser using DataLab