grantmcdermott / grantmcdermott/tinyplot
tinyplot not working with layout?
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 427
- Forks
- 25
- Avg merge
- 22h 54m
- Merged PRs (30d)
- 28
Description
I was trying to use tinyplot with layout. However, there appears to be an issue.
works: all plots basically are drawn, but not in the matrix layout
layout(matrix(c(1, 1, 1, 1, 2, 2, 3, 3), nrow = 2, ncol = 4, byrow = TRUE ))
tinyplot(Petal.Width ~ Sepal.Width | Species, data = iris)
tinyplot(Sepal.Width ~ Petal.Length | Species, data = iris)
tinyplot(Petal.Width ~ Petal.Length | Species, data = iris)
doesn't work: all plots basically are drawn in the matrix layout, when the by argument is not used (both with by and formula syntax)
layout(matrix(c(1, 1, 1, 1, 2, 2, 3, 3),
nrow = 2, ncol = 4, byrow = TRUE
))
tinyplot(Petal.Width ~ Sepal.Width, data = iris)
tinyplot(Sepal.Width ~ Petal.Length, data = iris)
tinyplot(Petal.Width ~ Petal.Length, data = iris)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the two examples in the issue using R, comparing the faceted and non-faceted tinyplot calls with the same layout(matrix(...)) setup. Trace tinyplot's layout handling from the relevant plotting entry point; done when both formula and by-based calls draw their plots in the requested matrix layout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100