Skip to content
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

EXPORTING IMAGES #7

Open
galadrielent opened this issue Mar 5, 2018 · 3 comments
Open

EXPORTING IMAGES #7

galadrielent opened this issue Mar 5, 2018 · 3 comments

Comments

@galadrielent
Copy link

Hello, I'm running muxViz on a Windows 10 64 bit OS, R version 3.4.3, RStudio version 1.1.423

I've managed to install and run analysis on a dataset and muxViz successfully displayed my rendered multilayer network on the RGL window. However, when I try to export the image (as a png file), I get the following error:

Warning in rgl.snapshot(FILE_RGL_SNAPSHOT) :
RGL: Pixmap save: unable to open file 'C:\Users\SANDRA\Documents\R\muxViz-master"C:\Users\SANDRA\Documents\R\muxViz-master\export\muxViz_05-03-2018_162649_05-03-2018_163223.png"' for writing
Warning in rgl.snapshot(FILE_RGL_SNAPSHOT) : 'rgl.snapshot' failed

When the program is actually trying to export the image, I see that the directory address displayed has both back- and forward slashes, however they do not appear in the resulting Warning message. I also get similar error when I'm trying to generate annular visualizations.

Any suggestions will be appreciated.

@sulheim
Copy link

sulheim commented May 30, 2018

Hi.
This happens to me as well.
The bug is in the server.R line 7852
FILE_RGL_SNAPSHOT <- buildPath("export",paste0(input$txtProjectName,"_",as.character(format(Sys.time(), "%d-%m-%Y_%H%M%S")),".png"))

I fixed this temporarily by just hard coding a directory, i.e.
FILE_RGL_SNAPSHOT <- "C:/Users/Documents/muxviz/network.png"

I am considering to try to make a patch, but I'm not used to R....

@sulheim
Copy link

sulheim commented May 30, 2018

I think actually there is something wrong with the buildPath function

@Bennylikescoding
Copy link

I also had these problems. I suggest that you render the network, magnify the graph as large as you can, then export to webGL html file, open the html file, save the html as pdf. Although it's just a snapshot and cannot be magnified to very detail, you can still use the output graph as the representation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants