Q3.2R.2
Art function
library(ggplot2)
make_art <- function(your_seed = 12656291) {
set.seed(your_seed)
random_data <-
as.data.frame(matrix(runif(
n = 400, min = 1, max = 200
), nrow = 200))
random_data$V3 = rep.int(1:10, 20)
ggplot(random_data, aes(V1, V2, group = V3, color = V3)) +
geom_line(size = 10) + theme_void() + theme(legend.position = "none") +
scale_colour_gradient(
low = "yellow",
high = "hotpink",
space = "Lab",
na.value = "darkorange",
guide = "colourbar",
aesthetics = "colour"
) +
theme(panel.background = element_rect(fill="plum1", colour="magenta4", size=5))
}