Skip to content

Commit

Permalink
Update ggplot2.R
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbates committed Aug 9, 2024
1 parent cfbb4ef commit c80d98e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/ggplot2.R
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,10 @@ ggneuron <- function(x,
}

prune_vertices.synapticneuron <- function (x, verticestoprune, invert = FALSE, ...){
if(length(verticestoprune)==nrow(x$d)){
warning('no points left after pruning')
return(NULL)
}
soma <- catmaid::somaid(x)
if(!is.null(soma)&&!is.na(soma)){
x$d[catmaid::somaindex(x),"Label"] <- 1
Expand Down

0 comments on commit c80d98e

Please sign in to comment.