Skip to content

Commit

Permalink
Pass "o" and "b" types through lines()
Browse files Browse the repository at this point in the history
  • Loading branch information
grantmcdermott committed Mar 6, 2023
1 parent 5898454 commit 2426c15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/plot2.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ plot2.default = function(
if (!is.null(grid)) grid

# draw the points/lines
if (type %in% c("p", "o", "b")) invisible(
if (type=="p") invisible(
lapply(
seq_along(split_data),
function(i) points(
Expand All @@ -164,7 +164,9 @@ plot2.default = function(
function(i) lines(
x=split_data[[i]]$x,
y=split_data[[i]]$y,
col = cols[i], type = type
col = cols[i],
type = type,
pch = pch
)
)
)
Expand Down

0 comments on commit 2426c15

Please sign in to comment.