Thanks a lot for your answers ! Here, my code :
data$mort_eval_jour___1 = c(1, 1, 0, 0, 0, 1, 1, 1, 1, 1,
1, 1, 1, 0, 1, 1, 0, 0, 1, 0,
1, 0, 1, 0, 1, 1)
data$mort_eval_jour___2 = c(0, 0, 0, 1, 0, 1, 0, 0, 0, 1,
0, 0, 0, 1, 0, 0, 1, 0, 0, 0,
0, 1, 0, 1, 0, 0)
data$mort_eval_jour___3 = c(0, 0, 1, 0, 0, 1, 1, 1, 0, 0,
1, 0, 0, 0, 1, 0, 0, 0, 1, 1,
0, 0, 0, 1, 1, 0)
data$mort_eval_jour___4 = c(0, 1, 1, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 1, 0,
0, 0, 0, 0, 0, 0)
data$mort_eval_jour___5 = c(0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0)
data$mort_eval_jour___6 = c(0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
0, 0, 0, 0, 0, 0)
label(data$mort_eval_jour___1)=
"Evaluation mortalité : quand ? (choice = J28)"
label(data$mort_eval_jour___2)=
"Evaluation mortalité : quand ? (choice = J60)"
label(data$mort_eval_jour___3)=
"Evaluation mortalité : quand ? (choice = J90)"
label(data$mort_eval_jour___4)=
"Evaluation mortalité : quand ? (choice = J180)"
label(data$mort_eval_jour___5)=
"Evaluation mortalité : quand ? (choice = ICU)"
label(data$mort_eval_jour___6)=
"Evaluation mortalité : quand ? (choice = hospit)"
data$mort_eval_jour___1.factor = factor(data$mort_eval_jour___1,
levels=c("0","1"))
data$mort_eval_jour___2.factor = factor(data$mort_eval_jour___2,
levels=c("0","1"))
data$mort_eval_jour___3.factor = factor(data$mort_eval_jour___3,
levels=c("0","1"))
data$mort_eval_jour___4.factor = factor(data$mort_eval_jour___4,
levels=c("0","1"))
data$mort_eval_jour___5.factor = factor(data$mort_eval_jour___5,
levels=c("0","1"))
data$mort_eval_jour___6.factor = factor(data$mort_eval_jour___6,
levels=c("0","1"))
levels(data$mort_eval_jour___1.factor) = c(F,T)
levels(data$mort_eval_jour___2.factor) = c(F, T)
levels(data$mort_eval_jour___3.factor) = c(F, T)
levels(data$mort_eval_jour___4.factor) = c(F, T)
levels(data$mort_eval_jour___5.factor) = c(F, T)
levels(data$mort_eval_jour___6.factor) = c(F, T)
mort_eval_jour <- data_frame(
J28 = data$mort_eval_jour___1.factor,
J60 = data$mort_eval_jour___2.factor,
J90 = data$mort_eval_jour___3.factor,
J180 = data$mort_eval_jour___4.factor,
ICU = data$mort_eval_jour___5.factor,
hosp = data$mort_eval_jour___6.factor
)
M_AcostaCH
I would like to have only the True of the variables on my plot !