Skip to content

Commit a8f96a8

Browse files
Add spaces around equal signs
1 parent 94cab73 commit a8f96a8

File tree

1 file changed

+2
-2
lines changed
  • inst/examples/plotlyLinkedClick

1 file changed

+2
-2
lines changed

inst/examples/plotlyLinkedClick/app.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ui <- fluidPage(
1919
server <- function(input, output, session) {
2020
output$heat <- renderPlotly({
2121
plot_ly(x = nms, y = nms, z = correlation,
22-
key = correlation, type = "heatmap", source="heatplot") %>%
22+
key = correlation, type = "heatmap", source = "heatplot") %>%
2323
layout(xaxis = list(title = ""),
2424
yaxis = list(title = ""))
2525
})
@@ -35,7 +35,7 @@ server <- function(input, output, session) {
3535
})
3636

3737
output$scatterplot <- renderPlotly({
38-
s <- event_data("plotly_click", source="heatplot")
38+
s <- event_data("plotly_click", source = "heatplot")
3939
if (length(s)) {
4040
vars <- c(s[["x"]], s[["y"]])
4141
d <- setNames(mtcars[vars], c("x", "y"))

0 commit comments

Comments
 (0)