MixSIAR icon indicating copy to clipboard operation
MixSIAR copied to clipboard

Isospace Plot Error

Open gebryson opened this issue 4 years ago • 1 comments

Hi Brian,

After loading my data and trying to create an isospace plot, I get this error:

Error: breaks and labels must have the same length

My code for the isospace plot: plot_data <- plot_data(filename="isospace_plot", plot_save_pdf=F, plot_save_png=F, mix, source, discr)

I have loaded several other data sets using similar code and never experienced this problem, any thoughts? I figured it was due to the ggplot2 package rather than MixSIAR but even when trying to explicitly set breaks and labels this error appears.

gebryson avatar Jun 08 '20 19:06 gebryson

Sorry, there's not enough info to help. You'll need to post your data files and R code.

In general it's not a good idea to save an object with the name of a function - you're overwriting the plot_data function with a plot_data object.

brianstock avatar Oct 20 '20 03:10 brianstock