Skip to content

Commit

Permalink
added missing point_size argument to plotOutliersPDF
Browse files Browse the repository at this point in the history
  • Loading branch information
MicTott committed Mar 27, 2024
1 parent 6325c9e commit c0f7e9a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions R/plotOutliers.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

plotOutliers <- function(spe, sample_id = "sample_id",
sample=unique(spe$sample_id)[1], metric="detected",
outliers=NULL, point_size=1,
outliers=NULL, point_size=2,
colors=c("white","black"), stroke=1) {


Expand All @@ -46,7 +46,7 @@ plotOutliers <- function(spe, sample_id = "sample_id",

# Conditionally add outliers if they are not NULL
if (!is.null(outliers)) {
p <- p |> add_ground(var = outliers, stroke = stroke)
p <- p |> add_ground(var = outliers, stroke = stroke, point_size = point_size)
}

# Add title to the plot
Expand Down
5 changes: 3 additions & 2 deletions R/plotOutliersPDF.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#' @export
plotOutliersPDF <- function(spe, sample_id="sample_id", metric="detected",
outliers="local_outliers",colors=c("white", "black"),
stroke=1, width=5, height=5,fname
stroke=1, point_size=2, width=5, height=5,fname
) {

# Get a list of unique sample IDs
Expand All @@ -50,7 +50,8 @@ plotOutliersPDF <- function(spe, sample_id="sample_id", metric="detected",
metric=metric,
outliers=outliers,
colors=colors,
stroke=stroke
stroke=stroke,
point_size=point_size
)

# print
Expand Down
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,6 @@ spe <- findArtifacts(spe,
n_rings=5,
name="artifact"
)
#> [1] "k6"
#> [1] "k18"
#> [1] "k36"
#> [1] "k60"
#> [1] "k90"

# check that "artifact" is now in colData
colnames(colData(spe))
Expand Down
Binary file modified man/figures/README-artifact_visualization-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c0f7e9a

Please sign in to comment.