Skip to content

Commit 07479b3

Browse files
committed
remove examples that no longer run
1 parent 29523d3 commit 07479b3

File tree

3 files changed

+1
-145
lines changed

3 files changed

+1
-145
lines changed

DESCRIPTION

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
Package: Plotly's R graphing library.
1+
Package: Plotly's R graphing library.
22
Imports:
33
geomorph,
4-
maptools,
54
rjson,
65
dplyr,
76
quantmod,

r/2016-06-17-3d-tri-surf.Rmd

-41
Original file line numberDiff line numberDiff line change
@@ -86,44 +86,3 @@ fig <- plot_ly(
8686
8787
fig
8888
```
89-
90-
### Maps
91-
92-
```{r}
93-
#devtools::install_github("hypertidy/anglr")
94-
library(anglr)
95-
library(maptools)
96-
library(plotly)
97-
data(wrld_simpl)
98-
99-
map1 <- subset(wrld_simpl,
100-
NAME %in% c("Indonesia", "Papua New Guinea", "New Zealand", "Australia"))
101-
## DEL model (like TRI in silicate)
102-
delmesh <- anglr::globe(anglr::DEL(map1, max_area = 0.5))
103-
mesh <- as.mesh3d(delmesh)
104-
105-
106-
# plot point cloud
107-
x <- mesh$vb[1,]
108-
y <- mesh$vb[2, ]
109-
z <- mesh$vb[3,]
110-
m <- matrix(c(x,y,z), ncol=3, dimnames=list(NULL,c("x","y","z")))
111-
112-
# colours in z don't make sense here, need to map object aesthetics above
113-
zmean <- apply(t(mesh$it),MARGIN=1,function(row){mean(m[row,3])})
114-
115-
library(scales)
116-
facecolor = colour_ramp(
117-
brewer_pal(palette="RdBu")(9)
118-
)(rescale(x=zmean))
119-
120-
fig <- plot_ly(
121-
x = x, y = y, z = z,
122-
i = mesh$it[1,]-1, j = mesh$it[2,]-1, k = mesh$it[3,]-1,
123-
facecolor = facecolor,
124-
type = "mesh3d"
125-
)
126-
127-
fig
128-
```
129-
Inspired by <a href="http://rpubs.com/cyclemumner/rangl-plotly"> Michael Sumner</a>

r/2017-01-13-mixed-subplot.Rmd

-102
This file was deleted.

0 commit comments

Comments
 (0)