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

legend in RMarkdown #27

Open
koolmees opened this issue Aug 30, 2021 · 0 comments
Open

legend in RMarkdown #27

koolmees opened this issue Aug 30, 2021 · 0 comments

Comments

@koolmees
Copy link

koolmees commented Aug 30, 2021

I am trying to add billboarder charts in my .Rmd but if it's not located on the landing page the legend isn't loaded correctly. This is a simply example of the problem:

---
title: "Untitled"
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    vertical_layout: fill
---

```{r setup, include=FALSE}
library(flexdashboard)
library(billboarder)
library(data.table)
```

Column {.tabset}
-----------------------------------------------------------------------

### Dummy tab


### Chart A

```{r}
billboarder() %>%
  bb_linechart(melt(data.table(rock, keep.rownames = TRUE)[, area := as.numeric(area)], id.vars = "rn", measure.vars = c("area", "peri")), bbaes(rn, value, variable))
```
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

1 participant