Skip to content

Commit

Permalink
Adapt to minfi DataFrame class. Additional as.data.frame added to wor…
Browse files Browse the repository at this point in the history
…k with ggplot
  • Loading branch information
vbarrera committed Oct 26, 2017
1 parent 52ae43a commit c3eb38d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/mdsplot.RGset.R
Expand Up @@ -37,6 +37,7 @@ mdsplot.RGset <- function (dat, numPositions = 1000, sampGroups, sampNames, main
# generate color factors for ggplot
fit$col <- fit[,sampGroups]
fit$col <- as.character(fit$col)
fit <- as.data.frame(fit) # Required again as new minfi returns DataFrame class, not data.frame
# factor colors in palette by sampGroups
if (missing(sampNames)) {
ggplot(fit, aes(x=x, y=y, color=col))+
Expand Down

0 comments on commit c3eb38d

Please sign in to comment.