Questions tagged [ggplotly]

ggplotly is a function which converts a ggplot object into an interactive plotly object. It enables the usage of functions like zoom, hover, playing with the axis, appearing/disappearing group of points.

For more information and examples, please visit the website.

799 questions
-2
votes
1 answer

plot different columns in one graph R

My sample data : structure(list(year = c(2018, 2018, 2018, 2018, 2019, 2019), month = c(9, 10, 11, 12, 1, 2), pred1 = c(-6.63356483810535, -6.50968293287978, -1.54767782423655, -1.47812226859267, -1.36788275407234, -1.28168637109063),…
Lalitha
  • 147
  • 10
-3
votes
1 answer

ggplot is plotting all my data into a single line

I am making a dashboard that plots an x and y input. However when both inputs are passed, ggplot plots my data into a singular line. I have also tried using plotly and I get no result altogether. Would someone be able to help with a working ggplot…
Bcarine
  • 35
  • 4
-4
votes
1 answer

Mean, Median, Mode Plot in R

I have a below df like this. df <- data.frame(country = c("UK", "US", "UK", "US", "UK", "US"), tcs = c(1205, 15002, 13455, 15012, 14015, 15012), cts = c(2300, 26004, 25000, 29004, 27500, 31004), year =…
Jos Butler
  • 23
  • 1
  • 8
1 2 3
53
54