Skip to content

Commit

Permalink
Minor code polish plot_AbanicoPlot()
Browse files Browse the repository at this point in the history
  • Loading branch information
RLumSK committed Dec 26, 2024
1 parent 016c6b7 commit 4eb75b5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/plot_AbanicoPlot.R
Original file line number Diff line number Diff line change
Expand Up @@ -2009,7 +2009,7 @@ plot_AbanicoPlot <- function(
}

## optionally add further lines
if(missing(line) == FALSE) {
if(!missing(line)) {
for(i in 1:length(line)) {
lines(x = line.coords[[i]][1,1:3],
y = line.coords[[i]][2,1:3],
Expand Down Expand Up @@ -2880,7 +2880,7 @@ plot_AbanicoPlot <- function(
cex.axis = layout$abanico$font.size$xlab2/12)

## plot y-axis
if(y.axis == TRUE) {
if(y.axis[1]) {
char.height <- par()$cxy[2]
tick.space <- axisTicks(usr = limits.y, log = FALSE)
tick.space <- (max(tick.space) - min(tick.space)) / length(tick.space)
Expand Down Expand Up @@ -3551,4 +3551,3 @@ plot_AbanicoPlot <- function(
## create and return numeric output
invisible(plot.output)
}

0 comments on commit 4eb75b5

Please sign in to comment.