Description Usage Arguments Examples
This function takes as input a data frame from join_eval (or
from sim_eval) and plots the results. Choose the type of plot
using the argument plottype. Furhtermore, decide how the different
courses and the different topics should be represented in the plot using
course_as and topic_as, namely, either on the x-axis, in
different facets/panels, or using different colors/groups.
1 2 3 4 5 | plot_eval(data = NULL, plottype = c("barplot", "points", "boxplot",
"violin"), courses = NULL, domains = 2, topics = NULL,
topic_as = c("facet", "group", "x-axis"), course_as = c("x-axis", "facet",
"group"), add_line = FALSE, errorbar = TRUE, CI = 0.95, grey = FALSE,
lang = NULL, xvar_as_legend = FALSE, control = list(), ...)
|
data |
Data frame as returned from |
plottype |
Character, either |
courses |
Optional character vector of length >= 1. Used to select a
subset of courses present in |
domains |
Numeric of length >= 1, specifying the domains to plot.
|
topics |
Optional character vector of length >= 1. Used to select a
subset of topics present in |
topic_as |
Character. Should each topic be plotted using a different
|
course_as |
Character. Should each course/file be plotted using a
different value on the |
add_line |
Logical. Should a connecting line be added to the plot? |
errorbar |
Logical indicating whether error bars representing a confidence interval should be plotted or not. |
CI |
Numeric. Confidence level of error bars, often |
grey |
Logical indicating whether colors should be replaces with shades of grey. |
lang |
Character string specifying the language of the variable names. |
xvar_as_legend |
Logical indicating whether a legend should be plotted for the variable on the x-axis. |
control |
Optional list to fine-tune the plot.
|
... |
Other parameters passed to—depending on |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
tmp1 <- read_eval("./data")
dat1 <- join_eval(tmp1)
## End(Not run)
# Simulate data
dat1 <- sim_eval()
plot_eval(dat1)
plot_eval(dat1, plottype = "points", domains = 1)
plot_eval(dat1, courses = c("Course1", "Course3"), errorbar = FALSE)
plot_eval(dat1, topics = c("Motivierung", "Note Dozent"), plottype = "boxplot")
plot_eval(dat1, plottype = "points", topic_as = "x-axis", course_as = "group", add_line = TRUE)
plot_eval(dat1, domains = 1:2, plottype = "violin", xvar_as_legend = TRUE,
control = list(title = "My Title")) +
ggplot2::theme_dark()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.