Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. p <- plot_ly(
  2. adjusted_rates, x = ~round(expected,3), y = ~round(observed,3),
  3. # Hover text:
  4. text = ~paste("Surgeon: ", surgeon_name)
  5. )
  6.  
  7. d <- layout(p, xaxis = x, yaxis = y,
  8. #plot_bgcolor=grDevices::colorRampPalette(c("red", "white", "green"))(n = 1000))
  9. shapes = list(
  10. list(type = "rect",
  11. fillcolor = grDevices::colorRampPalette(c("red", "white", "green"))(n = 1000), opacity = 0.3,
  12. x0 = 0, x1 = .11, xref = "x",
  13. y0 = 0, y1 = .11, yref = "y")))
  14. d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement