plot_question: Plot question

View source: R/plot_question.R

plot_questionR Documentation

Plot question

Description

Plot question

Usage

plot_question(
  data = construct_data(p = 17),
  str_question = "neg_mind",
  str_patient = "1",
  plotly = TRUE
)

Arguments

data

tibble returned from construct_data(p = 17)

str_question

string specifying which question to plot ("neg_mind", "pos_mind", "old_strategy" or "new_strategy")

str_patient

string specifying which patient (= Deltager) to extract "1", "2", ..., "10", "Gennemsnit" or "Alle")

plotly

logical indicating if plotly or ggplotly shoud be returned

Value

plotly object

Examples

data <- construct_data(p = 17)
plot_question(data = data, str_question = "neg_mind")


kristian-bak/rumination documentation built on Oct. 31, 2022, 6:44 p.m.