MixSIAR
MixSIAR copied to clipboard
Isospace Plot Error
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.
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.