r - Suppres 0-1 on the left axis in partykit -
i using ctree () in partykit package develop conditional inference tree dichotomous outcome (0=alive, 1=death). when showing tree colleagues find 0-1 on left y axis misleading. believe right, because have second y axis on right shows frequency of outcome. example terminal nodes
is possible suppress left y axis coding? code have is:
library(partykit) outcome_tree<- ctree(outcome ~.,data=mydata, control = ctree_control (maxdepth=4)) plot(outcome_tree, main="conditional inference tree")
Comments
Post a Comment