Skip to content

Commit

Permalink
close #292
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentGatto committed Dec 19, 2017
1 parent 52352ce commit cc4245e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Changes in version 2.5.3
------------------------
- MSnSet to/from SummarizedExperiment coercion (contributed by Arne
Smits in PR #284) <2017-12-17 Sun>
Smits in PR [#284](https://github.com/lgatto/MSnbase/issues/284)) <2017-12-17 Sun>
- Fix inverted M/Z axis in plot3D,MSmap (reported by Sylvain
Dechaumet, see issue #292) <2017-12-19 Tue>

Changes in version 2.5.2
------------------------
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## Changes in version 2.5.3
- MSnSet to/from SummarizedExperiment coercion (contributed by Arne
Smits in PR [#284](https://github.com/lgatto/MSnbase/issues/284)) <2017-12-17 Sun>
- Fix inverted M/Z axis in plot3D,MSmap (reported by Sylvain
Dechaumet, see issue #292) <2017-12-19 Tue>

## Changes in version 2.5.2
- Use automatic backend detection (based on file name and file
Expand Down
4 changes: 2 additions & 2 deletions R/map.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ setMethod("plot3D", "MSmap",
if (rgl) {
if (!require("rgl"))
stop("The 'rgl' package needed. Install it with 'install.packages(\"rgl\")'.")
rgl::plot3d(rev(dd$mz), dd$rt, dd$intensity, , type = "h",
rgl::plot3d(dd$mz, dd$rt, dd$intensity, , type = "h",
xlab = "M/Z", ylab = "Retention time", zlab = "")
} else {
ms <- NULL ## get rid of 'no visible global function definition' note
par.set <- list(box.3d = list(lwd=.2))
cloud(intensity ~ rev(mz) + rt , data = dd,
cloud(intensity ~ mz + rt , data = dd,
type="h",
scales= list(
arrows=FALSE,
Expand Down

0 comments on commit cc4245e

Please sign in to comment.