Skip to content

Commit

Permalink
add point.size arg
Browse files Browse the repository at this point in the history
  • Loading branch information
junjunlab committed Aug 30, 2023
1 parent 949e2b5 commit 6f97289
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions R/featurePlot.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ globalVariables(c("col_rg","tmp_col"))
#' @param ylab Label for the y-axis.
#' @param respect Logical value indicating whether to respect the specified number
#' of rows and columns in the plot grid, defaults to TRUE.
#' @param point.size the point size, default 1.
#'
#' @examples
#' \dontrun{
Expand Down Expand Up @@ -68,7 +69,8 @@ featurePlot <- function(object = NULL,
plot.size = 0.6,
keep.oneCor = FALSE,
xlab = NULL,ylab = NULL,
respect = TRUE){
respect = TRUE,
point.size = 1){
# ============================================================================
# 1_extract data
# ============================================================================
Expand Down Expand Up @@ -195,7 +197,7 @@ featurePlot <- function(object = NULL,
}
}

grid.points(x = tmp_data[,1],y = tmp_data[,2],pch = 19,size = unit(1,"pt"),
grid.points(x = tmp_data[,1],y = tmp_data[,2],pch = 19,size = unit(point.size,"pt"),
gp = gpar(col = tmp_data$col_f))

# whether draw axis
Expand Down
5 changes: 4 additions & 1 deletion man/featurePlot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6f97289

Please sign in to comment.