Browse Source

Error3

master
marcelcosta 4 years ago
parent
commit
1e051abf75
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      invivos/app.R

+ 4
- 4
invivos/app.R

@ -539,15 +539,15 @@ server <- function(input, output) {
g_surv_vacc<-g
}else{
tableR<-table %>% filter(!is.na(Volume))
endtime<-dcast(tableR %>% filter(Volume < cutoff), `ID animal`+Group~., value.var = "Timepoint", fun.aggregate = function(x){max(as.numeric(as.character(x)))}) %>% rename("end"=".")
endtime["Dead"]<-dcast(tableR, `ID animal`+Group~., value.var = "Volume", fun.aggregate = function(x){max(as.numeric(as.character(x)))}) %>% pull(".") > input$cutoff
table_tumor<-endtime
if (input$colors != ""){
col<-input$colors
}else{
col<-gg_color_hue(length(unique(table_tumor$Group)))
}
tableR<-table %>% filter(!is.na(Volume))
endtime<-dcast(tableR %>% filter(Volume < cutoff), `ID animal`+Group~., value.var = "Timepoint", fun.aggregate = function(x){max(as.numeric(as.character(x)))}) %>% rename("end"=".")
endtime["Dead"]<-dcast(tableR, `ID animal`+Group~., value.var = "Volume", fun.aggregate = function(x){max(as.numeric(as.character(x)))}) %>% pull(".") > input$cutoff
table_tumor<-endtime
g<-ggsurvplot(survfit(Surv(table_tumor$end, table_tumor$Dead) ~ table_tumor$Group, data=table_tumor),
pval = T, pval.method = T,
# legend.labs = paste(c("< median", ">= median"), "MICA"),

Loading…
Cancel
Save