Comments (12)
A simpler reprex:
library(maps)
library(ggplot2)
nz <- map_data("nz")
ggplot(nz, aes(x = long, y = lat, group = group)) +
geom_polygon(fill = "white", colour = "black") +
coord_map() +
guides(x = guide_axis(angle = 45))
#> Warning: `guide_axis()` cannot be used for .
#> ℹ Use one of x, y, or r instead.
Created on 2024-02-07 with reprex v2.1.0
The underlying issue is that coord_map()
is superseded by coord_sf()
and didn't recieve any guide updates. coord_sf()
did get the update, and the axis text angle works:
library(maps)
library(ggplot2)
nz <- map_data("nz")
ggplot(nz, aes(x = long, y = lat, group = group)) +
geom_polygon(fill = "white", colour = "black") +
coord_sf(crs = 4326) +
guides(x = guide_axis(angle = 45))
Created on 2024-02-07 with reprex v2.1.0
from ggplot2.
Related Issues (20)
- legend.byrow = TRUE doesn't seem to be working HOT 2
- geom_contour throwing a warning as if `fill` has been "dropped" HOT 8
- Histogram with breaks that uses Inf does not works HOT 1
- facet_grid with ordered factors and drop = FALSE causes deprecation warning
- Trailing comma in `theme()` causing error in 3.5.0 HOT 1
- Nothing plotted or lines and dots are Grey with manual_scale when a named vector is used as the input. HOT 3
- Error: ! Failed to evaluate glue component HOT 6
- using `geom_abline` with faceting and multiple linetypes HOT 2
- In `theme`, could `axis.ticks` inherit from `axis.line`? HOT 2
- Referencing labels set with `color =` requires using `$colour` HOT 1
- Bug: Changing the legend.text margin t or b changes legend.key.height HOT 2
- A helper to test plot equivalence ? HOT 2
- Passing a function to `breaks=` in `stat/geom_contour` does not work (as long as both `bins=` and `binwidth=` are `NULL`)
- `scale_{x,y}_continuous()` functions do not work inside `do.call()` HOT 2
- geom_smooth and stat_smooth need to truncate lines when standard error exceeded HOT 2
- Feature request: `axis.ticks` argument in `facet_wrap` and `facet_grid` HOT 4
- Confusing typo in https://ggplot2.tidyverse.org/reference/annotate.html HOT 1
- Recursively set (or remove) a theme element HOT 3
- Quantiles used in `geom_violin` seem a little off HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ggplot2.