MariaNattestad / Assemblytics

Assemblytics is a bioinformatics tool to detect and analyze structural variants from a genome assembly by comparing it to a reference genome.
MIT License
136 stars 28 forks source link

R syntax change #8

Closed splaisan closed 7 years ago

splaisan commented 7 years ago

I get the warnings:

...
4. Combine variants between and within alignments
COMBINE,DONE,Step 4: Variants combined successfully. Now generating figures and summary statistics.
Warning messages:
1: `geom_bar()` no longer has a `binwidth` parameter. Please use `geom_histogram()` instead. 
2: `geom_bar()` no longer has a `binwidth` parameter. Please use `geom_histogram()` instead. 
3: `geom_bar()` no longer has a `binwidth` parameter. Please use `geom_histogram()` instead. 
4: `geom_bar()` no longer has a `binwidth` parameter. Please use `geom_histogram()` instead. 
5: `geom_bar()` no longer has a `binwidth` parameter. Please use `geom_histogram()` instead. 
6: `geom_bar()` no longer has a `binwidth` parameter. Please use `geom_histogram()` instead. 
7: `geom_bar()` no longer has a `binwidth` parameter. Please use `geom_histogram()` instead. 
8: `geom_bar()` no longer has a `binwidth` parameter. Please use `geom_histogram()` instead. 
null device 

I suspect something changed in ggplot2 is responsible, can I fix this? Thanks

splaisan commented 7 years ago

I edited line 98 accordingly in my local install

-                      geom_bar(binwidth=binwidth) + 
+                      geom_histogram(binwidth=binwidth) + 

of and it seems to lead so far to the same pictures. thanks for the tool

MariaNattestad commented 7 years ago

Right, ggplot2 has undergone some changes. Thanks for posting your fix here for others to see if they have a newer ggplot2 version too!