Skip to content

Support Y-axis and X-axis "breaks" when annotate=TRUE #17

@trevorld

Description

@trevorld

Currently:

library("ppcli")
library("ppdf")
> cat_piece(marble_board(nrows = 5), annotate = T)
10─────────┐
9│◌ ◌ ◌ ◌ ◌│
8│         │
7│◌ ◌ ◌ ◌ ◌│
6│         │
5│◌ ◌ ◌ ◌ ◌│
4│         │
3│◌ ◌ ◌ ◌ ◌│
2│         │
1│◌ ◌ ◌ ◌ ◌│
 └─────────┘
  abcdefghij

but it could be nice if we could suppress those final axis labels (that don't refer to where a piece can go but the edge of the board):

> cat_piece(marble_board(nrows = 5), annotate = T, breaks = 1:9)
 ┌─────────┐
9│◌ ◌ ◌ ◌ ◌│
8│         │
7│◌ ◌ ◌ ◌ ◌│
6│         │
5│◌ ◌ ◌ ◌ ◌│
4│         │
3│◌ ◌ ◌ ◌ ◌│
2│         │
1│◌ ◌ ◌ ◌ ◌│
 └─────────┘
  abcdefghi

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions