Skip to content

Retrieve max count from Histogram #559

Open
@federicou

Description

@federicou

The idea is to create a histogram plot and draw a vertical line of the mean of the data over the histogram.

a=runif(100); p <- plot_ly(x=a,type="histogram")

then add a trace

p %>% add_trace(x=c(mean(a),mean(a)),y=c(0,maxCount),mode="lines",name="Mean")

The point is that maxCount is available only when the histogram chart is created

Any suggestion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions