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
render.d3movie errors on empty slice with vertex.cex specified #24
Comments
a minimal example:
|
…ill fail to find attributes for vertices and get error in plotArgs.network. See issue #24
I have just checked, whether or not the code from the bugfix branch eliminates the errors reported in http://stackoverflow.com/questions/39295734/how-can-i-determine-robust-slice-parameters-for-dynamic-network-renderings-in-r/39298836#39298836 It turns out, that while the first error ("Attribute 'vertex.sides' had illegal missing values...", which is raised when one "activates" the first version of the slice.par parameter list) seems to be solved now, the second error ("Attribute 'weight' had illegal missing values for edge.lwd...", which is raised when one "activates" the second version of the slice.par parameter list) is still showing up. |
I'm having the same problem noted by @nextensible regarding edge.lwd errors (but not edge.col for whatever reason) for frames when the network has no edges. this is using ndtv_0.10.0 from CRAN |
it actually looks like there's code written to solve this problem in the dev version of this repo (statnet/ndtv). However, I cannot get this to install |
Try this (R package itself is in a subdirectory of the repo): devtools::install_github("statnet/ndtv", subdir = "ndtv/") |
thanks @smjenness . I'm still having a related bug with ndtv 0.12. The code only breaks when two criteria are met:
The error it gives is
Reproducible code:
|
hmm, looks like the fix may have introduced another error? simpler code to reproduce (or throw a related error)
this gives me
I assume this must have something to do with no edge attribute being defined if no edges exist, but I'll need to dig into it more |
michael writes
Dear Mr. Skye Bender-deMoll,
I might have found a bug in the ndtv package in the render.d3movie procedure: if one chooses the interval and aggregate.dur parameter values in a way that results in an empty network slice AND in addition provides e.g. vertex.cex = 'mycex, then the rendering process fails at the "empty" slice with the error message:
Attribute 'vertex.cex' had illegal missing values for vertex.cex or was not present in plot.network.default.
However, if one wraps the cachePlotValues call inside render.d3movie with a check for network.size>0, everything works fine:
Bildschirmfoto 2016-08-26 um 14.49.05.png
This may not be the right channel for bug reports, and even may not be the best fix for the bug, but I thought I let you know...
All the best,
Michael
The text was updated successfully, but these errors were encountered: