Skip to content

"Variable not found" error in ggmarginal #681

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

Closed
ASmirnov-HORIS opened this issue Feb 6, 2023 · 1 comment
Closed

"Variable not found" error in ggmarginal #681

ASmirnov-HORIS opened this issue Feb 6, 2023 · 1 comment
Assignees
Labels

Comments

@ASmirnov-HORIS
Copy link
Collaborator

Code:

ggplot({'x': [], 'y': []}, aes('x', 'y')) + \
    geom_point() + \
    ggmarginal("t", layer=geom_histogram())

Result:

Variable not found: '..density..'. Variables in data frame: ['x', 'y']

But:

  • the library should work with empty data and
  • shouldn't complain about '..density..' when current stat is '..count..'
@alshan alshan modified the milestones: New, 2023Q2 Mar 30, 2023
@alshan alshan added the ASAP label Mar 31, 2023
@IKupriyanov-HORIS IKupriyanov-HORIS self-assigned this Apr 11, 2023
@IKupriyanov-HORIS
Copy link
Collaborator

IKupriyanov-HORIS commented Apr 12, 2023

This code snippet also doesn't work:

from lets_plot import *
LetsPlot.setup_html()

ggplot(data={'x': [1, 2], 'y': [1, 2]}) + \
    geom_smooth(aes('x', 'y'), tooltips=layer_tooltips().line('@..se..'))

Result:
'Variable not found: '..se..'. Variables in data frame: ['y', '..ymin..', '..ymax..', 'x']'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants