output$GraphPlot1 <- renderPlot({
par(fig=c(0.2,1,0,0.8), mar = c(2,0,0.1,2), new=TRUE)
ggplot(table.years,aes(table.years[[2]],table.years[[1]]))+geom_line(color="blue", size = 1.5)+geom_line(aes(table.years[[3]],table.years[[1]]),color="black", size = 1.5)+
geom_line(aes(table.years[[4]],table.years[[1]]),color="green", size = 1.5)+geom_line(aes(table.years[[5]],table.years[[1]]),color="red", size = 1.5)+
geom_line(aes(table.years[[6]],table.years[[1]]),color="Yellow", size = 1.5)+
labs(x = "Percent",
y = "years")
})
Hello, I am trying to create an interactive chart with the code below. I have as input parameters: the standard deviation, the number of realizations and the autocorrelation distance.
table.years is a table containing percentages based on years. I would like my graph to change when these settings change. Would you know how I could go about it please?
I display 5 columns of my table in the same graph, the first column contains the years and the 5 others the percentages.