Skip to content

Commit

Permalink
Fix plotRDA (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
TuomasBorman authored Oct 16, 2023
1 parent c8ae84a commit 83c7243
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: miaViz
Title: Microbiome Analysis Plotting and Visualization
Version: 1.9.4
Version: 1.9.5
Authors@R:
c(person(given = "Tuomas", family = "Borman", role = c("aut", "cre"),
email = "[email protected]",
Expand Down
10 changes: 1 addition & 9 deletions R/plotCCA.R
Original file line number Diff line number Diff line change
Expand Up @@ -429,17 +429,11 @@ setMethod("plotRDA", signature = c(object = "matrix"),
}
}

# Create labels for axis
xlab <- paste0(dimred, " 1")
ylab <- paste0(dimred, " 2")

# Create a list to return
result <- list(
plot = plot,
ellipse_data = ellipse_data,
vector_data = vector_data,
xlab = xlab,
ylab = ylab
vector_data = vector_data
)
return(result)
}
Expand Down Expand Up @@ -584,7 +578,5 @@ setMethod("plotRDA", signature = c(object = "matrix"),
}

}
# Add axis labels
plot <- plot + xlab(plot_data$xlab) + ylab(plot_data$ylab)
return(plot)
}

0 comments on commit 83c7243

Please sign in to comment.