hrbrmstr / streamgraph

:wavy_dash: htmlwidget for creating streamgraph visualizations in R
http://hrbrmstr.github.io/streamgraph/
Other
148 stars 49 forks source link

Warning if supplied date is of class POSIXct #3

Closed jemus42 closed 9 years ago

jemus42 commented 9 years ago

In if (class(data$date) %in% c("numeric", "character", "integer")) { : the condition has length > 1 and only the first element will be used

Since the plotting works fine with a date variable of class POSIXct, I think there shouldn't be a warning in this case.

hrbrmstr commented 9 years ago

Thx for giving the pkg a go and finding a bug! Give the push I just did a go (0.4.1). It should get rid of said error message.

jemus42 commented 9 years ago

Thanks for the quick update, works as I expected now!