AntoineGuillot2 / D3partitionR

R package to visualise interactively hierarchical data.
http://enhancedatascience.com/2017/09/20/d3partitionr-0-5-beta/
40 stars 7 forks source link

Null values within a sequence. #20

Open Dekermanjian opened 6 years ago

Dekermanjian commented 6 years ago

HI, I am trying to use D3partionR package to graph a sequence. My sequence has areas where a shorter sequence will have NA values to fill out the data.frame for the longer sequences. For example seq A -> seq B -> seq C -> NA -> NA seq A -> serb -> seq C -> seq D -> seq E.

When I try to plot the partition I get this error: 'Error in if (length(nms) != n || any(nms == "")) stop("'options' must be a fully named list, or have no names (NULL)") : missing value where TRUE/FALSE needed'

Is there a way to by pass the NAs in my data.frame?

AntoineGuillot2 commented 6 years ago

Hello, Yes you're right, this may be an issue, I'llhave a look at it this week-end. Currently, I do not think this is possible to pass NA values.