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

c3 produces a blank plot when the dplyr tibble classes exist. #13

Closed
Dulani opened this issue Sep 24, 2018 · 1 comment
Closed

c3 produces a blank plot when the dplyr tibble classes exist. #13

Dulani opened this issue Sep 24, 2018 · 1 comment

Comments

@Dulani
Copy link

Dulani commented Sep 24, 2018

iris_tibble <- iris %>%
    as_tibble()

iris_tibble %>%
  c3(x = 'Sepal_Length', 
     y = 'Sepal_Width', 
     group = 'Species') %>% 
  c3_line('line')

This results in a blank plot for me using RStudio 1.1.453 and R3.5.

If iris is plotted directly:

iris %>%
  c3(x = 'Sepal_Length', 
     y = 'Sepal_Width', 
     group = 'Species') %>% 
  c3_line('line')

then it works beautifully.

(This really is a beautiful plotting package).

@mrjoh3 mrjoh3 closed this as completed in 145595f Sep 25, 2018
@mrjoh3
Copy link
Owner

mrjoh3 commented Sep 25, 2018

Hi @Dulani,
glad you like the package. It seams as_tibble converts iris$Species to a factor. This caused a problem with the way I was pulling out groups for the plots indexing. The fix was pretty simple but should ensure consistent behaviour for data.frame and tibbles. Please let me know if the behaviour continues at your end.

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

2 participants