-4

I have been attempting this for a while now and can't find any appropriate information, thanks.

enter image description here

Ronak Shah
  • 355,584
  • 18
  • 123
  • 178
Port_Zye
  • 25
  • 5
  • 3
    Please do not post images . Kindly refer to https://meta.stackoverflow.com/questions/285551/why-not-upload-images-of-code-errors-when-asking-a-question/285557#285557 – sk8 Oct 12 '20 at 05:00

1 Answers1

1
library(plotly)

barplot <- plot_ly(
data = data,
  x = ~weight.Category,
  y = ~Percent.of.Adults,
  name = "bar plot",
  type = "bar"
)

barplot
sk8
  • 140
  • 1
  • 8