blob: 58f778ef05ee849c6a6bf6a3bd67a6f678a6caac [file] [log] [blame]
Adrià Vilanova Martínezc2d9f312023-04-23 11:59:30 +02001library(ggplot2)
2library(svglite)
3
4data <- data.frame(
5 T = c(160, 170, 180, 190, 200),
6 UR = c(5.202, 5.15625, 5.08, 5.04333333333333, 4.905),
7 UncUR = c(0.034, 0.029, 0.047, 0.053, 0.104)
8)
9
10pplot <- ggplot(data, aes(x = T, y = UR)) +
11 geom_point() +
12 geom_errorbar(aes(ymin = UR - UncUR, ymax = UR + UncUR), width = 2) +
13 geom_errorbarh(aes(xmin = T - 3, xmax = T + 3)) +
14 xlab("T (ºC)") +
15 ylab(bquote(Mitjana~U[R]~(V))) +
16 theme(legend.position = "none", text = element_text(family = "Montserrat"))
17ggsave('output/mean_ur_vs_t.svg', pplot, width = 6.6, height = 3.75, bg = "transparent")