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

labelCol #157

Closed
lgatto opened this issue Oct 29, 2020 · 2 comments
Closed

labelCol #157

lgatto opened this issue Oct 29, 2020 · 2 comments
Assignees

Comments

@lgatto
Copy link
Member

lgatto commented Oct 29, 2020

The labelColargument isn't documented.

@lgatto
Copy link
Member Author

lgatto commented Oct 29, 2020

Here's another issue with labelCol, but despite the warnings, it works:

> plotSpectraMirror(ms[i[1]], ms[i[2]],
+                   labels = addFragments,
+                   labelPos = 3, labelCol = "orange")
Warning messages:
1: In plot.window(xlim = xlim, ylim = ylim, ...) :
  "labelCol" is not a graphical parameter
2: In axis(side = 1, ...) : "labelCol" is not a graphical parameter
3: In axis(side = 2, ...) : "labelCol" is not a graphical parameter
4: In box(...) : "labelCol" is not a graphical parameter
5: In title(main = main, xlab = xlab, ylab = ylab, ...) :
  "labelCol" is not a graphical parameter
6: In plot.xy(xy.coords(x_data[idx, "mz"], x_data[idx, "intensity"]),  :
  "labelCol" is not a graphical parameter
7: In plot.xy(xy.coords(x_data[idx, "mz"], x_data[idx, "intensity"]),  :
  "labelCol" is not a graphical parameter
8: In plot.xy(xy.coords(y_data[idx, "mz"], -y_data[idx, "intensity"]),  :
  "labelCol" is not a graphical parameter
9: In plot.xy(xy.coords(y_data[idx, "mz"], -y_data[idx, "intensity"]),  :
  "labelCol" is not a graphical parameter

Rplot001

@jorainer
Copy link
Member

Thanks! I will add the documentation and check how to avoid the warnings.

@jorainer jorainer self-assigned this Oct 30, 2020
jorainer added a commit that referenced this issue Oct 30, 2020
- Document and export the `labelCol` parameter - which fixes also the warnings
  from issue #157.
- Only use `par(mfrow = ...)` in `plotSpectra` if `Spectra` is of length > 1.
lgatto added a commit that referenced this issue Oct 30, 2020
fix: document and export labelCol parameter (issue #157)
@lgatto lgatto closed this as completed Oct 30, 2020
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

2 participants