@@ -34,7 +34,7 @@ packageVersion('plotly')
34
34
```
35
35
36
36
```
37
- ## [1] '4.5.2 '
37
+ ## [1] '4.8.0 '
38
38
```
39
39
40
40
#### Basic Heatmap
@@ -50,7 +50,7 @@ chart_link = api_create(p, filename="heatmap-simple")
50
50
chart_link
51
51
```
52
52
53
- <iframe src =" https://plot.ly/~RPlotBot/3224 .embed " width =" 800 " height =" 600 " id =" igraph " scrolling =" no " seamless =" seamless " frameBorder =" 0 " > </iframe >
53
+ <iframe src =" https://plot.ly/~RPlotBot/5603 .embed " width =" 800 " height =" 600 " id =" igraph " scrolling =" no " seamless =" seamless " frameBorder =" 0 " > </iframe >
54
54
55
55
56
56
#### Categorical Axes
@@ -69,23 +69,23 @@ chart_link = api_create(p, filename="heatmap-cat")
69
69
chart_link
70
70
```
71
71
72
- <iframe src =" https://plot.ly/~RPlotBot/3226 .embed " width =" 800 " height =" 600 " id =" igraph " scrolling =" no " seamless =" seamless " frameBorder =" 0 " > </iframe >
72
+ <iframe src =" https://plot.ly/~RPlotBot/5605 .embed " width =" 800 " height =" 600 " id =" igraph " scrolling =" no " seamless =" seamless " frameBorder =" 0 " > </iframe >
73
73
74
74
#### Sequential Colorscales: Greys
75
75
76
76
The ` colors ` argument understands color brewer palettes (see ` RColorBrewer::brewer.pal.info ` for valid names).
77
77
78
78
79
79
``` r
80
- p <- plot_ly(z = volcano , colorscale = " Greys" , type = " heatmap" )
80
+ p <- plot_ly(z = volcano , colors = " Greys" , type = " heatmap" )
81
81
82
82
# Create a shareable link to your chart
83
83
# Set up API credentials: https://plot.ly/r/getting-started
84
- chart_link = api_create(p , filename = " heatmap-gray " )
84
+ chart_link = api_create(p , filename = " heatmap-grey " )
85
85
chart_link
86
86
```
87
87
88
- <iframe src =" https://plot.ly/~RPlotBot/3228 .embed " width =" 800 " height =" 600 " id =" igraph " scrolling =" no " seamless =" seamless " frameBorder =" 0 " > </iframe >
88
+ <iframe src =" https://plot.ly/~RPlotBot/5607 .embed " width =" 800 " height =" 600 " id =" igraph " scrolling =" no " seamless =" seamless " frameBorder =" 0 " > </iframe >
89
89
90
90
#### Custom colorscales
91
91
@@ -101,7 +101,7 @@ chart_link = api_create(p, filename="heatmap-ramp")
101
101
chart_link
102
102
```
103
103
104
- <iframe src =" https://plot.ly/~RPlotBot/3230 .embed " width =" 800 " height =" 600 " id =" igraph " scrolling =" no " seamless =" seamless " frameBorder =" 0 " > </iframe >
104
+ <iframe src =" https://plot.ly/~RPlotBot/5609 .embed " width =" 800 " height =" 600 " id =" igraph " scrolling =" no " seamless =" seamless " frameBorder =" 0 " > </iframe >
105
105
106
106
Or, you can do the scaling yourself and use the colorscale attribute directly...
107
107
@@ -119,5 +119,5 @@ chart_link = api_create(p, filename="heatmap-custom")
119
119
chart_link
120
120
```
121
121
122
- <iframe src =" https://plot.ly/~RPlotBot/3232 .embed " width =" 800 " height =" 600 " id =" igraph " scrolling =" no " seamless =" seamless " frameBorder =" 0 " > </iframe >
122
+ <iframe src =" https://plot.ly/~RPlotBot/5611 .embed " width =" 800 " height =" 600 " id =" igraph " scrolling =" no " seamless =" seamless " frameBorder =" 0 " > </iframe >
123
123
0 commit comments