We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This issue appears when I'm trying to plot a map with axes on all the sides. Here is an example:
if (require("maps")) states <- map_data("state") arrests <- USArrests names(arrests) <- tolower(names(arrests)) arrests$region <- tolower(rownames(USArrests)) choro <- merge(states, arrests, sort = FALSE, by = "region") choro <- choro[order(choro$order),] ggplot(choro, aes(long, lat)) + geom_polygon(aes(group = group, fill = assault)) + coord_map("rectangular", 38) + scale_y_continuous(sec.axis = dup_axis()) + scale_x_continuous(sec.axis = dup_axis())
And the map looks like: As you can see, the second axes only appear with their names but not their labels and ticks.
It seems that this issue exists not only with coord_polar:> #2072.
And if I change coord_map() to coord_quickmap():
coord_map()
coord_quickmap()
if (require("maps")) states <- map_data("state") arrests <- USArrests names(arrests) <- tolower(names(arrests)) arrests$region <- tolower(rownames(USArrests)) choro <- merge(states, arrests, sort = FALSE, by = "region") choro <- choro[order(choro$order),] ggplot(choro, aes(long, lat)) + geom_polygon(aes(group = group, fill = assault)) + coord_quickmap() + scale_y_continuous(sec.axis = dup_axis()) + scale_x_continuous(sec.axis = dup_axis())
The code works fine:
The text was updated successfully, but these errors were encountered:
Unforunately, dual axes are currently only supported with Cartesian coordinate systems.
Sorry, something went wrong.
No branches or pull requests
This issue appears when I'm trying to plot a map with axes on all the sides.
Here is an example:
And the map looks like:

As you can see, the second axes only appear with their names but not their labels and ticks.
It seems that this issue exists not only with coord_polar:> #2072.
And if I change
coord_map()
tocoord_quickmap()
:The code works fine:

The text was updated successfully, but these errors were encountered: