-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modifying location legends of isoplot #220
Comments
Yes - I recently added a 'return_obj' argument to the plot_data function. If you update installation via Github, and set return_obj=TRUE, it'll return a ggplot object that you can modify as you wish |
Eric Skipping install of 'MixSIAR' from a github remote, the SHA1 (d8cf9ad) has not changed since last install. We detected these problematic arguments:
|
Hmmm, I don't know what exactly is going on. I tested this last week with @atchin's help, and think we got it working. Here's the test script below -- basically the killer whale script example from the manual, with 2 ways to make the plot (with and without saving it as a ggplot object). @atchin ran into an issue where he needed to set plot_save_pdf = FALSE (defaults to TRUE). Code: library(MixSIAR) mix.filename <- system.file("extdata", "killerwhale_consumer.csv", package = "MixSIAR") mix <- MixSIAR::load_mix_data(filename=mix.filename, Replace the system.file call with the path to your filesource.filename <- system.file("extdata", "killerwhale_sources.csv", package = "MixSIAR") source <- load_source_data(filename=source.filename, Replace the system.file call with the path to your filediscr.filename <- system.file("extdata", "killerwhale_discrimination.csv", package = "MixSIAR") discr <- load_discr_data(filename=discr.filename, mix) make original plotplot_data(filename="isospace_plot", plot_save_pdf=TRUE, plot_save_png=FALSE, mix,source,discr, return_obj=FALSE) make new plot that returns ggplot objectg = plot_data(filename="isospace_plot", plot_save_pdf=TRUE, plot_save_png=FALSE, mix,source,discr, return_obj=TRUE) |
Thanks Eric! For an example of modifying |
is there a way to modify the location where the legends get place in the iso-plot? Right now they cover up the data points and would like to be able to place them in a more appropriate location
The text was updated successfully, but these errors were encountered: