Skip to content

plotly histogram center and boundary attributes  #1895

@haruna-rgb

Description

@haruna-rgb
df %>%
  filter(include == "TRUE") %>%
  ggplot(aes(var1,fill=var2))+
  geom_histogram(center = 0.5, binwidth = 0.1)

Can i please know the equivalent attributes to center ?

plot= plot_ly(xbins = number_of_bins,autobinx = FALSE)
plot =plot%>%
    add_histogram(x = d$var1,
                  center = 0.5)

`
this is my code for histogram in plotly so can you please tell me how I can recreate the center attribute in plotly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions