Comments (3)
Hello,
I have noticed that when faceting with multiple rows and columns, the ggproto function when defines facet_x_names and facet_y_names duplicate the names for each combination of rows * columns, causing the issues of repeating the parameters of the firsts scale.
Modify the lines in the ggplot2::ggproto()
function adding unique()
solve the issue:
facet_x_names <- unique(as.character(layout[[names(params$cols)]]))
and
facet_y_names <- unique(as.character(layout[[names(params$rows)]]))
from facetscales.
@ravenroadresources can you send in a pull request from your fork? It fixes this issue!
and @zeehio can you accept it :)
from facetscales.
I merged the patch! Thanks!
from facetscales.
Related Issues (20)
- Does it support scale_y_log10? HOT 4
- facet_wrap_sc HOT 1
- match.arg: 'arg' must be NULL or a character vector HOT 6
- Problem in ggplot2 3.2.1 HOT 2
- Error in x$clone() : attempt to apply non-function HOT 2
- Error when using date column for x-axis HOT 3
- Error in x$clone() : attempt to apply non-function HOT 5
- attempt to select less than one element in get1index HOT 5
- facet_grid_sc does not seem to work with dates on x axis. HOT 2
- Did not make change with coord_flip() HOT 1
- help with geom_smooth and facet_grid_sc HOT 2
- What is the magnitude argument?
- Support multiple vars() HOT 2
- facet_grid_sc() throws error with POSIXct on x-axis. HOT 3
- Incompatible with expression()
- Error when faceting by column HOT 2
- Facet A, Facet B and others. HOT 2
- Boxplot looks different from facet_grid HOT 3
- facet_grid_sc cols argument not working 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 facetscales.