Añadir tabla en distribución por tamaños.

This commit is contained in:
marcelcosta
2021-06-17 08:55:50 +02:00
parent fc1c6c5341
commit c69cfb05e3
+13 -1
View File
@@ -10,6 +10,7 @@ library(gridExtra)
source("../../funcions.R") source("../../funcions.R")
library(survminer) library(survminer)
library(survival) library(survival)
library(plotrix)
# Define UI for application # Define UI for application
ui <- fluidPage( ui <- fluidPage(
@@ -29,7 +30,8 @@ ui <- fluidPage(
), ),
mainPanel( mainPanel(
plotOutput("firstPlot"), plotOutput("firstPlot"),
plotOutput("distPlot") plotOutput("distPlot"),
tableOutput("distTable")
) )
), ),
tabPanel("Análisis", tabPanel("Análisis",
@@ -195,6 +197,16 @@ server <- function(input, output) {
} }
}) })
output$distTable <- renderTable({
observeEvent(dades$db, {})
if (!is.null(dades$db)){
df<-dades$db
df_sum<-dcast(df, group~., value.var = "Volume", fun.aggregate = mean, na.rm=T) %>% rename("Mean"=".")
df_sum["SEM"]<-dcast(df, group~., value.var = "Volume", fun.aggregate = std.error, na.rm=T) %>% pull(`.`)
df_sum
}
})
output$downloadData <- downloadHandler( output$downloadData <- downloadHandler(
filename = function() { filename = function() {