Skip to content
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

Shot noise plot doesn't take extra colors #48

Open
brettdavidheiser opened this issue Jun 7, 2024 · 0 comments
Open

Shot noise plot doesn't take extra colors #48

brettdavidheiser opened this issue Jun 7, 2024 · 0 comments

Comments

@brettdavidheiser
Copy link
Collaborator

I have 12 things I want to plot and when I try and add extra colors to the function call it doesn't work. It says I gave 9 no matter how many I provide.

Ti.data |> orbi_flag_weak_isotopocules(80)|>orbi_analyze_shot_noise() |>orbi_plot_shot_noise(colors = c("#1B9E77", "#D95F02", "#7570B3", "#E7298A", "#66A61E", "#E6AB02", "#A6761D", "#666666","#555","#E77","#1B9","#E12","#66A","#A67"))

orbi_flag_weak_isotopocules() is flagging isotopocules from data that are detected in less than 80% of scans in 2 data group(s) (based on 'filename', 'compound')... flagged 3/26 isotopocules across all data groups (use orbi_plot_isotopocule_coverage()to visualize them) in 0.10 seconds. orbi_analyze_shot_noise() is analyzing the shot noise for 3145 peaks (excluded 187 flagged peaks)... calculations finished in 0.04 seconds. Error inpalette()`:
! Insufficient values in manual scale. 12 needed but only 9 provided.
Backtrace:

  1. base (local) <fn>(x)
  2. ggplot2:::print.ggplot(x)
  3. ggplot2:::ggplot_build.ggplot(x)
  4. base::lapply(data, scales_map_df, scales = npscales)
  5. ggplot2 (local) FUN(X[[i]], ...)
    ...
  6. ggplot2 (local) FUN(X[[i]], ...)
  7. self$map(df[[j]])
  8. ggplot2 (local) map(..., self = self)
  9. self$palette(n)
  10. ggplot2 (local) palette(...)
    Error in palette(...) :`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant