trelliscopejs
trelliscopejs copied to clipboard
trelliscope plot not visible as part of {.tabset} in R-Markdown
Minimal Example:
---
title: "Testme"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
# My Analysis {.tabset}
## Some table
```{r pressure, echo=FALSE}
library(trelliscopejs)
library(ggplot2)
library(gapminder)
head(gapminder)
```
## trelliscope Plots
```{r trelliscope}
qplot(year, lifeExp, data = gapminder) +
xlim(1948, 2011) + ylim(10, 95) + theme_bw() +
facet_trelliscope(~ country + continent, nrow = 2, ncol = 7, width = 300, self_contained = T)
```
Here some context:
> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin18.0.0 (64-bit)
Running under: macOS 10.14.1
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_1.0.0 rstudioapi_0.7 bindr_0.1.1.9000 knitr_1.21 magrittr_1.5 tidyselect_0.2.5
[7] munsell_0.5.0 colorspace_1.3-2 R6_2.2.2 rlang_0.3.0.1 plyr_1.8.4 dplyr_0.7.8
[13] tools_3.5.1 grid_3.5.1 packrat_0.4.8-1 gtable_0.2.0 xfun_0.4 htmltools_0.3.6
[19] digest_0.6.15 yaml_2.2.0 lazyeval_0.2.1 assertthat_0.2.0 tibble_1.4.2 anomalize_0.1.1
[25] crayon_1.3.4 bindrcpp_0.2.2 purrr_0.2.5 ggplot2_3.1.0 evaluate_0.12 glue_1.3.0
[31] rmarkdown_1.11.2 compiler_3.5.1 pillar_1.3.0 scales_1.0.0 pkgconfig_2.0.2
>
besides that, superb package!