hrbrmstr / streamgraph

:wavy_dash: htmlwidget for creating streamgraph visualizations in R
http://hrbrmstr.github.io/streamgraph/
Other
148 stars 49 forks source link

Plot not appearing in RStudio #2

Closed pssguy closed 9 years ago

pssguy commented 9 years ago

First stab with 0.3. and I'm getting a problem trying to use some babynames data With your example

     str(dat)
    Classes ‘tbl_df’, ‘tbl’ and 'data.frame':   791 obs. of  3 variables:
     $ year : Date, format: "1893-01-01" "1893-01-01" ...
     $ genre: Factor w/ 7 levels "Action","Animation",..: 1 2 3 4 5 6 7 1 2 3 ...
     $ n    : int  0 0 0 0 0 0 1 0 0 0 ...

streamgraph(dat, "genre", "n", "year", interactive=TRUE)

No problemo

My data is very similar (I even named the columns the same)

       str(namesDat)
        Classes ‘tbl_df’, ‘tbl’ and 'data.frame':   1135 obs. of  3 variables:
         $ year : Date, format: "1880-01-01" "1880-01-01" ...
         $ genre: Factor w/ 9 levels "Charles","George",..: 5 9 4 1 2 3 8 7 5 9 ...
         $ n    : int  9655 9532 5927 5348 5126 404 103 22 8769 8524 ...

         streamgraph(namesDat, "genre", "n", "year", interactive=TRUE)

No error in console but blank RStudio viewer and browser

Probably overlooking something obvious

hrbrmstr commented 9 years ago

prbly not. this pkg was rushed for an internal project. i'll poke at it over the weekend.

On Thu, Feb 12, 2015 at 6:49 PM, pssguy notifications@github.com wrote:

First stab with 0.3. and I'm getting a problem trying to use some babynames data With your example

 str(dat)
Classes ‘tbl_df’, ‘tbl’ and 'data.frame':   791 obs. of  3 variables:
 $ year : Date, format: "1893-01-01" "1893-01-01" ...
 $ genre: Factor w/ 7 levels "Action","Animation",..: 1 2 3 4 5 6 7 1 2 3 ...
 $ n    : int  0 0 0 0 0 0 1 0 0 0 ...

streamgraph(dat, "genre", "n", "year", interactive=TRUE)

No problemo

My data is very similar (I even named the columns the same)

   str(namesDat)
    Classes ‘tbl_df’, ‘tbl’ and 'data.frame':   1135 obs. of  3 variables:
     $ year : Date, format: "1880-01-01" "1880-01-01" ...
     $ genre: Factor w/ 9 levels "Charles","George",..: 5 9 4 1 2 3 8 7 5 9 ...
     $ n    : int  9655 9532 5927 5348 5126 404 103 22 8769 8524 ...

     streamgraph(namesDat, "genre", "n", "year", interactive=TRUE)

No error in console but blank RStudio viewer and browser

Probably overlooking something obvious

— Reply to this email directly or view it on GitHub https://github.com/hrbrmstr/streamgraph/issues/2.

hrbrmstr commented 9 years ago

Take a look at the latest Rmd example - http://rpubs.com/hrbrmstr/streamgraph_03 - and give the push I just did a go. I think it'll take care of all the cases, but we'll see.

pssguy commented 9 years ago

Looks good so far. Tx a lot