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
Hi, it seems drop parameter of facet_grid() function do not work. Below is official example:
drop
facet_grid()
import pandas as pd from plotnine import * from plotnine.data import * %matplotlib inline ( ggplot(mpg, aes(x='displ', y='hwy')) + geom_point() + facet_grid('drv ~ .') + labs(x='displacement', y='horsepower') )
Then I can add a new category for mpg dataset as:
mpg
mpg['drv'] = pd.Categorical(mpg['drv'], ['4', 'f', 'r', 'yingyingying'])
This time the column mpg['drv'] seems like this:
mpg['drv']
An empty category 'yingyingying' was added.
'yingyingying'
I add drop=False to my code, but nothing happens:
drop=False
( ggplot(mpg, aes(x='displ', y='hwy')) + geom_point() + facet_grid('drv ~ .', drop=False) + labs(x='displacement', y='horsepower') )
How can I add an empty panel of 'yingyingying' without any data points?
Please tell me if there's any misunderstanding.
Thank you in advance.
The text was updated successfully, but these errors were encountered:
466189e
No branches or pull requests
Hi, it seems
drop
parameter offacet_grid()
function do not work.Below is official example:
Then I can add a new category for
mpg
dataset as:This time the column
mpg['drv']
seems like this:An empty category
'yingyingying'
was added.I add
drop=False
to my code, but nothing happens:How can I add an empty panel of
'yingyingying'
without any data points?Please tell me if there's any misunderstanding.
Thank you in advance.
The text was updated successfully, but these errors were encountered: