Nothing
knitr::opts_chunk$set(echo = FALSE, warning = TRUE, vlkr.fig.width=700) library(ggplot2) library(volker) theme_set(theme_vlkr(base_size=15, base_fill = list("red"))) data <- volker::chatgpt
data |> plot_counts(adopter)
data |> mutate(adopter = adopter == "I try new offers immediately") |> plot_counts(adopter)
data |> plot_counts(adopter, category="I try new offers immediately")
# Test order of items plot_counts(data, sd_gender, adopter)
# The last categories' percentage should be omitted in ordered plots data |> plot_counts(adopter, sd_gender, prop = "rows", numbers="p")
# Test whether the figure is flipped plot_counts(data, adopter, sd_gender, prop = "cols", numbers="p", ordered = -1)
data |> mutate(adopter = factor(adopter, levels = rev(levels(adopter)))) |> plot_counts(adopter, sd_gender, prop = "cols")
plot_counts(data, starts_with("cg_adoption_"), numbers = "p")
plot_counts_items_grouped( data, starts_with("cg_adoption_"), adopter, category=c("agree","strongly agree") )
data |> mutate(across(starts_with("cg_adoption_advantage"), \(x) x > 3)) |> plot_counts(starts_with("cg_adoption_advantage"))
plot_counts_one_cor(data, adopter, sd_age)
plot_counts_one_cor(data, adopter, sd_age, prop = "rows")
plot_counts_items_cor( data, starts_with("cg_adoption_"), sd_age, category=c(4,5) )
plot_metrics(data, sd_age)
plot_metrics(data, sd_age, box=TRUE)
plot_metrics(data, sd_age, ci=TRUE)
plot_metrics(data, sd_age, sd_gender)
plot_metrics(data, sd_age, use_work, metric=TRUE)
plot_metrics(data, sd_age, use_work, metric=TRUE, log=TRUE)
plot_metrics(data, sd_age, use_work, metric=TRUE, title = FALSE)
plot_metrics(data, starts_with("cg_adoption_"))
plot_metrics(data, starts_with("cg_adoption_"), sd_gender)
plot_metrics_items_cor(data, starts_with("use_"), sd_age)
plot_metrics_items_cor(data, starts_with("use_"), sd_age, method = "spearman")
plot_metrics_items_cor_items(data, starts_with("cg_adoption_adv"), starts_with("use_"))
plot_metrics_items_cor_items( data, starts_with("cg_adoption_adv"), starts_with("use_"), numbers=TRUE )
data %>% add_index(starts_with("cg_adoption_social_")) %>% add_index(starts_with("cg_adoption_fearofuse_")) %>% add_index(starts_with("cg_adoption_advantage_")) %>% # Set new labels for the three index columns labs_apply(tribble( ~item_name, ~item_label, "idx_cg_adoption_social", "ChatGPT-Erwartung: Social", "idx_cg_adoption_fearofuse", "ChatGPT-Erwartung: Fear of Use", "idx_cg_adoption_advantage", "ChatGPT-Erwartung: Advantage" )) %>% plot_metrics_items_grouped(starts_with("idx_cg_adoption"), adopter)
data %>% filter(sd_gender != "diverse") %>% labs_apply( cols = sd_gender, values = list( "female" = "Weiblich", "male" = "Maennlich" ) ) %>% plot_metrics(sd_age, sd_gender)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.