-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
method = 'ttree' is not available #129
Comments
Hi - I think you are probably using the CRAN version, while the |
Sorry, It seems useless, I still find the error message in the console.
|
I had been reviewed the plot function and found that the method only accepts “visNetwork”, “graph3D”, “ggplot”. So I modified the method to 'visNetwork' and this fixed my issue. |
Hi, I flow this post (https://www.reconlearn.org/post/real-time-response-3.html) and try to plot timed transmission trees using this code.
q <- plot(cons_tree, method = 'ttree', ## show timed tree x_axis = 't_inf_est', ## use 't_inf_est' column for x_axis edge_color = "support", ## color edges by posterior support edge_col_pal = support_pal, ## specify color palette node_size = 'R_i', ## node size reflects R_i ## edge_label = "support", ## not showing for readability ## node_shape = "gender", ## not showing for readability ## shapes = c(m = "male", f = "female"), ## specify shapes width = 1000, ## adjust to improve readability height = 1500, ## adjust to improve readability node_color = "outcome", ## color nodes by outcome hide_labels = TRUE, ## don't show node labels date_labels = "%d/%m", ## formatting date labels axis_type = 'double', ## show two axes col_pal = outcome_pal, ## specify color palette node_order = 'subtree_size', ## order nodes vertically by subtree size reverse_node_order = TRUE, ## put large subtrees as the bottom ttree_shape = 'branching' ## ) q
However, I only get an error:
'arg' should be one of “visNetwork”, “graph3D”, “ggplot”
. And?vis_ttree
seems do not support too?Here is my version:
platform x86_64-w64-mingw32 arch x86_64 os mingw32 system x86_64, mingw32 status major 4 minor 1.1 year 2021 month 08 day 10 svn rev 80725 language R version.string R version 4.1.1 (2021-08-10) package ‘epicontacts’ version 1.2.0
The text was updated successfully, but these errors were encountered: