library(writexl)
library(readxl)
library(tidyverse)
library(viridis)
Data_temp <- read_excel("A:/APP_STEAD/para_jorge.xlsx")
#Data_temp %>%
#group_by("Especie"= Especie) %>%
#summarize(Counts = n()) %>%
# arrange(desc(Counts))
Especies <- unique(Data_temp$Especie)
for (i in Especies){
pp <- Data_temp %>%
filter(Especie==i)
print(ggplot(pp, aes(x = Año, y = TMAX / 10)) +
geom_point(aes(col = pp$TMAX / 10), alpha = 0.5) +
geom_smooth(fill = "orange", fill = "orange", alpha = 0.4) +
geom_smooth(method = lm, se = FALSE, col = "black") +
scale_color_viridis(discrete = FALSE, option = "E") +
scale_fill_viridis(discrete = FALSE) +
labs(
title = paste0(pp$Especie[1]),
y = "TMax (ºC)",
x = "Año",
color = "TMAX"
) +
theme(
panel.background = element_rect(
fill = "grey80",
colour = "grey80",
size = 0.5,
linetype = "solid"
),
panel.grid.major = element_line(
size = 0.5,
linetype = 'solid',
colour = "white"
),
panel.grid.minor = element_line(
size = 0.25,
linetype = 'solid',
colour = "white"
)
))
}



































































































































































































































