Closed ldecicco-USGS closed 7 years ago
Oh, and I added a function clear_par
that will reset to the par that was on the users computer when they loaded the package. I think it's useful...not sure if we need something fancier, or if that's it.
@ldecicco-USGS those log separate sides issues were fixed in #424. This seems to break that behavior?
Based on #424:
gs <- gsplot() %>%
points(c(1,10,100), 1:3, side=1) %>%
points(c(10,100,1000), 3:5, col="blue", side=3) %>%
axis(side=3) %>%
view(side=1, log='x')
gs
returns side 1 logged, but not side 3 as I would expect
Yeah, but that's the PR that broke all the layout
graphs. This pr fixes much of layout and 3/4 log axis graphs.
Currently struggling with:
view.usr <- par('usr')
unnamed-chunk-22-1.png shows the issues.
The second plot in the diff seems to have issues with it (legend overlaps y axis). Otherwise this looks pretty good.
yeah, I think the legend placement is because of that par('usr')
...still fiddling with it.
A-OK! I think a bunch of stuff is fixed by doing a final set_frame
call towards the end of print
to make the default frame at the end view.1.2 (if defined), or the first one that the user defined (if 1.2 isn't defined).
I think it's good-to-go.
So now, what works (that didn't in last 2 PRs):
UPDATE!!!
and also still doesn't work:
only side 1 should be logged, not 3
I think those are 2 current bugs, but this PR gets us a bunch fixed as-is.
I'll try to get these bugs listed as issues.