-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If side 1 or 2 isn't defined with data, can't modify axis. #453
Comments
per #456 ,
which I think is right. Do you want gsplot() %>%
points(1:100, 1:100, log="xy", side=c(3,4)) %>%
view(log='', side=c(1,2))
axis(side=c(1)) That does the same thing but is the way you could modify the log status of 1 and 2 if there were data there. weirder yet is that this seems to ignore logging by tying the axes together too strongly: gsplot() %>%
points(1:100, 1:100, log="xy", side=c(3,4)) %>%
points(1:10,1:10, log="", side=c(1,2)) %>%
axis(side=c(1)) Do we have tests hitting this code? Line 31 in 455298e
|
I think we really need to emphasize the |
I agree, going to add an issue to add view as documentation in the README and vignettes. See #462 |
What's the plan for finishing this one up @ldecicco-USGS @jread-usgs ? The axis issues for axis style args not getting recognized were fixed between #459 and #460. Do we just need to use view here instead and make sure to document that? Or are there code changes that need to take place? |
no, I think this is a bug. gs <- gsplot() %>%
points(1:100, 1:100, log="xy", side=c(3,4)) %>%
points(1:10,1:10, log="", side=c(1,2))
logged(gs)
$side.1
[1] TRUE
$side.2
[1] TRUE
$side.3
[1] TRUE
$side.4
[1] TRUE sides 1 and 2 shouldn't be logged. |
Yeah, I've started this bug fix. I can continue or assign it to someone else if someone's interested. But for now I'm trying to clean it up. |
gs <- gsplot() %>%
points(1:100, 1:100, log="xy", side=c(3,4)) %>%
points(1:10,1:10, log="", side=c(1,2))
logged(gs)
$side.1
[1] FALSE
$side.2
[1] FALSE
$side.3
[1] TRUE
$side.4
[1] TRUE from |
yeah, but a bunch of the other issues crop back up. I'll have you do the PR review @jread-usgs when it's ready. |
either way, we need a test(s) for this |
Trying to figure out a way to not log side 1.
The text was updated successfully, but these errors were encountered: