Page MenuHomePhabricator

Plot function stability() raises error when used with default values
Open, HighPublic

Description

When the function stability() is used with default values and ordering specified, an error is raised: "Must request at least one colour from a hue palette"

meanRanks <- ranking%>%consensus(method = "euclidean")
stability(ranking, ordering = meanRanks)

In the report it is used like that:

stability(object,ordering=ordering_consensus,max_size=9,size=8,shape=4)+
  scale_color_manual(values=cols)

Can this be done consistently to other plot functions such that stability() can be used as a stand-alone function?

Event Timeline

eisenman created this task.
eisenman updated the task description. (Show Details)

It has to be
ordering= names(meanRanks)
i.e. a vector of algorithm names in the ranking order
see reportMultiple.Rmd: ordering_consensus=names(params$consensus)

I'll allow ordering to be a named vector of ranks alternatively