blekhmanlab / biomehorizon

Plot microbiome time series in parallel
Other
24 stars 2 forks source link

colour error #16

Closed danfrks closed 11 months ago

danfrks commented 11 months ago

Dear authors,

Thank you for the brilliant package. I have a slight issue: I cannot change the colour palette.

CC_hp <- horizonplot(paramList, aesthetics = horizonaes(title = "", xlabel = "Time (days)", ylabel = "Taxa with >1% abundance\nfound in >10% of samples", legendTitle = "Quartiles Relative to Taxon Median", legendPosition = "bottom", col.bands = brewer.pal(8, "PiYG"))) The error: Error in nchar(col.bands) != 7 || substr(col.bands, 1, 1) != "#" : 'length = 8' in coercion to 'logical(1)'

This doesn't change if I change the nbands parameter nor if I change the number of colour variables. It might be something really simple I am missing - I thought I'd ask.

Thanks in advance

Daniel

isaacfink21 commented 11 months ago

Hi @danfrks! Thanks for catching this - I just pushed a commit that should fix this issue if you pull the latest version of the master branch. Let me know if you're still running into any issues.

danfrks commented 11 months ago

Thanks for the quick response! It works.

Best wishes!