forked from anshul96go/R_animint2_GSOC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIssues_1.Rmd
36 lines (30 loc) · 899 Bytes
/
Issues_1.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
title: "Errors/Issues in animint use for beginners"
output:
html_document:
---
```{r}
library(ggplot2)
library(animint)
```
```{r}
#Issue 1:
```
```{r warning=FALSE}
gg_anm2_sel <- ggplot(df) + geom_line(aes(x=df$Trade.Date, y=df$USD.AF8.FUT,
linetype=df$bucket, clickSelects=df$bucket))
#problem with linetype & clickSelects=df$bucket #ok with linetype & clickSelects=bucket
plot <- list(plot=gg_anm2_sel)
structure(plot, class="animint")
```
```{r warning=FALSE}
gg_anm2_sel <- ggplot(df) + geom_line(aes(x=df$Trade.Date, y=df$USD.AF8.FUT,
linetype=bucket, clickSelects=bucket))
plot <- list(plot=gg_anm2_sel)
library(animint)
structure(plot, class="animint")
#no error and graph opening correctly
```
```{r}
# Issue2: On scale_*_discrete, variables can't be changed by clicking on the legends
```