Analyse persons online in a moodle. Analyse at your own risk. Only for testing.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
355 B

setwd("mywd")
# Libraries
library(ggplot2)
library(dplyr)
library(hrbrthemes)
library(viridis)
amount <- rowSums(df[2:as.numeric(ncol(df))]) # write sum of rows in amount
# Plot
ggplot(df, aes(x=times, y=amount)) +
geom_line() +
scale_color_viridis(discrete = TRUE) +
ggtitle("mytitle") +
theme_ipsum() +
ylab("myyaxis") +
xlab("myxaxis")