Skip to content

Commit

Permalink
Support missing types. Closes #26.
Browse files Browse the repository at this point in the history
  • Loading branch information
grantmcdermott committed Apr 15, 2023
1 parent 0f4e1f9 commit 40a1aee
Show file tree
Hide file tree
Showing 11 changed files with 880 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/by_aesthetics.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ by_pch = function(ngrps, type, pch) {
by_lty = function(ngrps, type, lty) {

# don't care about line type, return NULL
if (!type %in% c("l", "b", "o")) {
if (!type %in% c("l", "b", "o", "c", "h", "s", "S")) {
out = NULL

# NULL -> solid line
Expand Down
2 changes: 1 addition & 1 deletion R/plot2.R
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ plot2.default = function(
)
)
}
if (type %in% c("l", "o", "b")) {
if (type %in% c("l", "o", "b", "c", "h", "s", "S")) {
invisible(
lapply(
seq_along(split_data),
Expand Down
71 changes: 71 additions & 0 deletions inst/tinytest/_tinysnapshot/type_c.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 40a1aee

Please sign in to comment.