gg_sus | R Documentation |
gg_sus
creates a SUS plot in ggplot2 graphics.
gg_sus(...)
... |
Optional parameters which can be supplied to
|
Returns ggplot2 plot of SUS scores vs percentile ranks.
sus_to_percentile
, sus_suaro
p <- gg_sus()
p
df <- sus_to_percentile(68)
p + geom_point(data = df, aes(x, y), colour = "red")
df <- cbind(df, Phase = "End of Record Test")
p +
geom_point(data = df, aes(x, y, colour = Phase)) +
geom_segment(data = df, aes(x = 0, xend = x, y = y, yend = y,
colour = Phase, linetype = Phase)) +
geom_segment(data = df, aes(x = x, xend = x, y = 0, yend = y,
colour = Phase, linetype = Phase)) +
scale_x_continuous(expand = c(0,0)) +
scale_y_continuous(expand = c(0,0)) +
scale_colour_manual(breaks = "End of Record Test", values = "#E69F00") +
scale_linetype_manual(breaks = "End of Record Test", values = 2) +
labs(y = "Percentile Rank", x = "SUS Score")
rm(list = c("p", "df"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.