You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a user report this issue lazappi/clustree#36. After looking into it a bit a think it might be a problem with ggraph.
Here is a reprex with an example from one of the vignettes.
library(ggraph)
#> Loading required package: ggplot2
library(tidygraph)
#> #> Attaching package: 'tidygraph'#> The following object is masked from 'package:stats':#> #> filter
set_graph_style(plot_margin= margin(1,1,1,1))
graph<- as_tbl_graph(highschool)
# Not specifying the layout - defaults to "auto"plot<- ggraph(graph) +
geom_edge_link(aes(colour=factor(year))) +
geom_node_point()
#> Using `nicely` as default layoutplot
That works fine but if we set options(stringsAsFactors = FALSE) first there is an error when rendering the plot.
options(stringsAsFactors=FALSE)
plot#> Error in pathAttr(data, length(unique(data$group))): Not compatible with requested type: [type=character; target=integer].
I'm guessing somewhere something that should be a factor isn't (probably related to the edge colour) but I'm not sure where.
Uh oh!
There was an error while loading. Please reload this page.
Hi
I had a user report this issue lazappi/clustree#36. After looking into it a bit a think it might be a problem with
ggraph
.Here is a reprex with an example from one of the vignettes.
That works fine but if we set
options(stringsAsFactors = FALSE)
first there is an error when rendering the plot.I'm guessing somewhere something that should be a factor isn't (probably related to the edge colour) but I'm not sure where.
Created on 2019-08-15 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: