Skip to content
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

interactive plot_Histogram() is broken #186

Closed
mcol opened this issue Aug 30, 2024 · 1 comment
Closed

interactive plot_Histogram() is broken #186

mcol opened this issue Aug 30, 2024 · 1 comment
Labels
bug Clear problem or crash

Comments

@mcol
Copy link
Contributor

mcol commented Aug 30, 2024

Using the interactive option in plot_Histogram() generates this error:

data(ExampleData.DeValues, envir = environment())
df <- ExampleData.DeValues$CA1
plot_Histogram(df, interactive = TRUE)

# Error in UseMethod("layout") : 
#  no applicable method for 'layout' applied to an object of class "list"

traceback()
# 2: plotly::layout(yaxis2 = yaxis2) at plot_Histogram.R#763
# 1: plot_Histogram(df, interactive = TRUE)

If I comment out the plotly::layout(yaxis2 = yaxis2) line, I get these long warnings andthe plot is mostly empty (only the axis and labels are visible, but no histogram).

Warning messages:
1: 'scatter' objects don't have these attributes: 'histnorm'
Valid attributes include:
'cliponaxis', 'connectgaps', 'customdata', 'customdatasrc', 'dx', 'dy', 'error_x', 'error_y', 'fill', 'fillcolor', 'fillpattern', 'groupnorm', 'hoverinfo', 'hoverinfosrc', 'hoverlabel', 'hoveron', 'hovertemplate', 'hovertemplatesrc', 'hovertext', 'hovertextsrc', 'ids', 'idssrc', 'legendgroup', 'legendgrouptitle', 'legendrank', 'line', 'marker', 'meta', 'metasrc', 'mode', 'name', 'opacity', 'orientation', 'selected', 'selectedpoints', 'showlegend', 'stackgaps', 'stackgroup', 'stream', 'text', 'textfont', 'textposition', 'textpositionsrc', 'textsrc', 'texttemplate', 'texttemplatesrc', 'transforms', 'type', 'uid', 'uirevision', 'unselected', 'visible', 'x', 'x0', 'xaxis', 'xcalendar', 'xhoverformat', 'xperiod', 'xperiod0', 'xperiodalignment', 'xsrc', 'y', 'y0', 'yaxis', 'ycalendar', 'yhoverformat', 'yperiod', 'yperiod0', 'yperiodalignment', 'ysrc', 'key', 'set', 'frame', 'transforms', '_isNestedKey', '_isS [... truncated] 
2: 'scatter' objects don't have these attributes: 'histnorm'
Valid attributes include:
'cliponaxis', 'connectgaps', 'customdata', 'customdatasrc', 'dx', 'dy', 'error_x', 'error_y', 'fill', 'fillcolor', 'fillpattern', 'groupnorm', 'hoverinfo', 'hoverinfosrc', 'hoverlabel', 'hoveron', 'hovertemplate', 'hovertemplatesrc', 'hovertext', 'hovertextsrc', 'ids', 'idssrc', 'legendgroup', 'legendgrouptitle', 'legendrank', 'line', 'marker', 'meta', 'metasrc', 'mode', 'name', 'opacity', 'orientation', 'selected', 'selectedpoints', 'showlegend', 'stackgaps', 'stackgroup', 'stream', 'text', 'textfont', 'textposition', 'textpositionsrc', 'textsrc', 'texttemplate', 'texttemplatesrc', 'transforms', 'type', 'uid', 'uirevision', 'unselected', 'visible', 'x', 'x0', 'xaxis', 'xcalendar', 'xhoverformat', 'xperiod', 'xperiod0', 'xperiodalignment', 'xsrc', 'y', 'y0', 'yaxis', 'ycalendar', 'yhoverformat', 'yperiod', 'yperiod0', 'yperiodalignment', 'ysrc', 'key', 'set', 'frame', 'transforms', '_isNestedKey', '_isS [... truncated] 
@mcol mcol added the bug Clear problem or crash label Sep 9, 2024
@mcol mcol added this to the v0.9.25 (autumn CRAN release) milestone Sep 11, 2024
@mcol
Copy link
Contributor Author

mcol commented Sep 11, 2024

Fixed by #231.

@mcol mcol closed this as completed Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Clear problem or crash
Projects
None yet
Development

No branches or pull requests

1 participant