8000 remove 2d example · plotly/plotly.r-docs@2f218fe · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f218fe

Browse files
author
Joseph Damiba
committed
remove 2d example
1 parent 1732dd1 commit 2f218fe

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

r/2015-07-30-2D-Histogram.Rmd

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,3 @@ fig <- fig %>% add_histogram2d(colorscale = "Blues")
4343
4444
fig
4545
```
46-
47-
#### Z Matrix
48-
If you want more control for the binning algorithm, you can supply a 2D table or matrix to `z`. In this case, the R package will impose it's colorscale default (and the `colors` argument can be used to control the colorscale from R):
49-
50-
```{r}
51-
cnt <- with(diamonds, table(cut, clarity))
52-
fig <- plot_ly(diamonds, x = ~cut, y = ~clarity, z = ~cnt)
53-
fig <- fig %>% add_histogram2d()
54-
55-
fig
56-
```

0 commit comments

Comments
 (0)
0