Open ghost opened 6 years ago
Interesting. Can you send a small reproducible example?
Of course. I tried to mimic your example from here: http://stats.research.att.com/nycseminars/slides/hafen.pdf
Code:
library(tidyverse)
library(gapminder)
library(rbokeh)
library(visNetwork)
library(trelliscopejs)
p = qplot(year, lifeExp, data = gapminder, color = continent, group = country, geom = "line") + facet_wrap(~continent, nrow = 1)
plotly::ggplotly(p)
# Plots as expected
qplot(year, lifeExp, data = gapminder) +
xlim(1948, 2011) + ylim(10, 95) + theme_bw() +
facet_trelliscope(~ country + continent,
nrow = 2, ncol = 7, width = 300, as_plotly = TRUE)
Console:
writing thumbnail [===============================================-] 99% 145/147 eta: 0sCould not load file:///C:/file:/C:/Users/[USERNAME]/AppData/Local/Temp/Rtmp4iHcYX/file259c22aa6b78.html
* could not create htmlwidget thumbnail... will use blank thumbnail...
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
path[1]="file://C:\Users\[USERNAME]\AppData\Local\Temp\Rtmp4iHcYX\file259c22aa6b78.html": The filename, directory name, or volume label syntax is incorrect
sessionInfo():
R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] bindrcpp_0.2.2 trelliscopejs_0.1.11 visNetwork_2.0.3 rbokeh_0.5.0
[5] gapminder_0.3.0 forcats_0.3.0 stringr_1.3.1 dplyr_0.7.5
[9] purrr_0.2.4 readr_1.1.1 tidyr_0.8.1 tibble_1.4.2
[13] ggplot2_2.2.1 tidyverse_1.2.1 httr_1.3.1 curl_3.2
loaded via a namespace (and not attached):
[1] maps_3.3.0 purrrlyr_0.0.2 jsonlite_1.5 viridisLite_0.3.0
[5] modelr_0.1.2 shiny_1.1.0 assertthat_0.2.0 cellranger_1.1.0
[9] yaml_2.1.19 progress_1.1.2 pillar_1.2.3 backports_1.1.2
[13] lattice_0.20-35 glue_1.2.0 DistributionUtils_0.5-1 digest_0.6.15
[17] promises_1.0.1 pryr_0.1.4 rvest_0.3.2 colorspace_1.3-2
[21] htmltools_0.3.6 httpuv_1.4.3 plyr_1.8.4 psych_1.8.4
[25] pkgconfig_2.0.1 broom_0.4.4 gistr_0.4.0 haven_1.1.1
[29] xtable_1.8-2 scales_0.5.0 webshot_0.5.0 later_0.7.2
[33] hexbin_1.27.2 lazyeval_0.2.1 cli_1.0.0 mnormt_1.5-5
[37] mime_0.5 magrittr_1.5 crayon_1.3.4 readxl_1.1.0
[41] evaluate_0.10.1 nlme_3.1-137 xml2_1.2.0 foreign_0.8-70
[45] tools_3.5.0 data.table_1.11.4 prettyunits_1.0.2 hms_0.4.2
[49] plotly_4.7.1 munsell_0.4.3 compiler_3.5.0 rlang_0.2.0
[53] grid_3.5.0 rstudioapi_0.7 htmlwidgets_1.2 crosstalk_1.0.0
[57] base64enc_0.1-3 labeling_0.3 rmarkdown_1.9 gtable_0.2.0
[61] codetools_0.2-15 reshape2_1.4.3 R6_2.2.2 lubridate_1.7.4
[65] knitr_1.20 bindr_0.1.1 rprojroot_1.3-2 stringi_1.1.7
[69] parallel_3.5.0 Rcpp_0.12.17 tidyselect_0.2.4
attach so many packages , but this tool is power ! like bokeh app
@ishaverma12 did you manage to solve that issue?
I run into the same problem. Look forward to any solutions. Thank you. Later, I tried one more time by adding "path =". It works, although plots show up on the web instead of the viewer.
I'm having issues implementing facet_trelliscope with as_plotly = TRUE
I get a message saying: "Could not load file: path *could not create htmlwidget thumbnail... will use blank thumbnail... Warning message:
In normalizePath(path.expand(path), winslash, mustWork) : path[1]="file://C": The filename, directory name, or volume label syntax is incorrect