Hi people.
I need to plot a graph after the user enter with many Inputs, for the R search for these inputs in a Database, and next, plot the graph.
Ordering my idea:
1- I have the following list of inputs in UI code:
numericInput(inputId= "diametro", label= "Diametro do Aco:", value= 0),
numericInput(inputId= "parede", label= "Parede:", value= 0),
textInput(inputId= "grau", label= "Grau:", value= 0),
textInput(inputId= "aqa", label= "AQA:", value= 0),
numericInput(inputId= "ciclo", label = "Ciclo:", value = 0),
2- ONLY WHEN the user INSERT ALL THESE VALUES, the program will search in database to plot a graph with the following code:
tabela_saida = df
valor_le = df$LE
valor_tr = df$TR
relacao_ts = (valor_le/valor_tr)
#------------------------------------Calculo pra Capabilidade---------------------
capabilidade_LE <- valor_le
capabilidade_LE = matrix(valor_le, nrow = 1, ncol = length(valor_le), byrow = TRUE)
normalidade_LE = matrix(valor_le, nrow = length(valor_le), ncol = 1, byrow = TRUE)
capabilidade2 <- relacao_ts
capabilidade2 = matrix(relacao_ts, nrow = 1, ncol = length(relacao_ts), byrow = TRUE)
normalidade2 = matrix(relacao_ts, nrow = length(relacao_ts), ncol = 1, byrow = TRUE)
How can I create a soluction for the plot to do this last code, only when all the inputs have been insert?