cesium_bar: Cesium.js For R

Description Usage Arguments Examples

View source: R/cesium.R

Description

An experimental package to use Cesium.js for R. Please note that the main purpose of this package is for proof of concept.

Usage

1

Arguments

x

data.frame with columns named lon, lat, and value

width

width

height

height

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
d <-
 structure(list(lon = c(137.21020562, 140.405278, 140.82869485,
140.20085084, 132.85377785, 136.22478304, 130.66498178, 140.2225687,
137.05374989, 138.98236607, 132.7848637, 142.84828882, 134.8255947,
140.31643991, 136.77023006, 141.35995307, 133.99389788, 130.43129727,
139.33775283, 133.36560611, 130.75375968, 135.44124934, 136.37943046,
140.92647311, 131.29815374, 138.04313001, 129.61203901, 135.86833171,
138.91749196, 131.43071646, 133.81262682, 126.66890218, 135.50570007,
130.11390568, 139.34459374, 136.13489927, 132.5602251, 138.32740632,
139.81619411, 134.24010153, 139.56237131, 133.84950553, 137.26500976,
135.50944934, 140.09985437, 131.57160692, 138.60840695), lat = c(35.03694116,
39.75276687, 40.78369203, 35.51650146, 33.62560801, 35.85026611,
33.52691417, 37.38196068, 35.78093618, 36.50757015, 34.60695988,
43.47015288, 35.04043545, 36.31045325, 36.77157034, 39.59646468,
34.24597058, 31.02990909, 35.41713846, 33.42441214, 32.61862835,
35.25564109, 34.51861565, 38.4496475, 32.19530094, 36.13635398,
33.23181134, 34.31910832, 37.52388359, 33.20271253, 34.9041813,
25.77298373, 34.62484624, 33.28837322, 35.99978377, 35.21889353,
35.07679336, 35.02007404, 36.692685, 33.92137685, 35.07700755,
35.36295381, 36.63939172, 33.91314908, 38.45069141, 34.20132842,
35.61553602), value = c(5092, 4639, 3470, 4633, 5038.66666666667,
5235.33333333333, 4090.83333333333, 4922.33333333333, 4804.66666666667,
4839, 5313.33333333333, NA, 4881, 4805.66666666667, 6543, 4315.66666666667,
5478.33333333333, 5237.66666666667, 5003.75, 5428.33333333333,
4577, 5456, 4986.66666666667, 5063, 4534.66666666667, 5252, 4075.66666666667,
5619, 4799.66666666667, 5377, 4618.66666666667, 4174, 4114.33333333333,
4702.66666666667, 5238.66666666667, 4651.33333333333, 4539, 4790.83333333333,
5797.33333333333, 4477.33333333333, 5247, 5380, 5634.66666666667,
4501, 5697, 5852.33333333333, 5056.66666666667)), class = c("tbl_df",
"tbl", "data.frame"), row.names = c(NA, -47L), .Names = c("lon",
"lat", "value"))

cesium_bar(d)

yutannihilation/cesiumr documentation built on May 4, 2019, 7:45 p.m.