# Markdown Basics
This is plain text. Empty lines are interpreted as new paragraphs. Single newlines
are ignored by the markdown renderer.
## Code Samples
If you'd like to include code samples in your markdown, indent each line with
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onload = function () { | |
rclient = RClient.create({ | |
debug: false, | |
host: (location.protocol == "https:") ? ("wss://"+location.hostname+":8083/") : ("ws://"+location.hostname+":8081/"), | |
on_connect: function(ocaps) { | |
rcloud = RCloud.create(ocaps.rcloud); | |
if (rcloud.authenticated) { | |
rcloud.session_init(rcloud.username(), rcloud.github_token(), function(hello) { | |
rclient.post_response(hello); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
demo(graphics, ask=F) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(lattice) | |
demo(lattice, ask=F) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# We don't want a numeric vector. We want a data.frame slice. | |
head(mtcars["mpg"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Setup up coordinate system (with x == y aspect ratio): | |
plot(c(-2,3), c(-1,5), type = "n", xlab = "x", ylab = "y", asp = 1) | |
## the x- and y-axis, and an integer grid | |
abline(h = 0, v = 0, col = "gray60") | |
text(1,0, "abline( h = 0 )", col = "gray60", adj = c(0, -.1)) | |
abline(h = -1:5, v = -2:3, col = "lightgray", lty = 3) | |
abline(a = 1, b = 2, col = 2) | |
text(1,3, "abline( 1, 2 )", col = 2, adj = c(-.1, -.1)) |
This notebook is an elementary example of how one can load a map with center at lat, long and a specific zoom. The first cell is mandatory and should not be modified, apart from the height and width parameters.
Due to an RCloud bug(will be fixed pretty soon), please load only one map per markdown cell - just as the example below.
# Always have this code on the top
library(rCharts)
options(
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mpg | cyl | disp | hp | drat | wt | qsec | vs | am | gear | carb | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Mazda RX4 | 21 | 6 | 160 | 110 | 3.9 | 2.62 | 16.46 | 0 | 1 | 4 | 5 | |
Mazda RX4 Wag | 21 | 6 | 160 | 110 | 3.9 | 2.875 | 17.02 | 0 | 1 | 4 | 5 | |
Datsun 710 | 22.8 | 4 | 108 | 93 | 3.85 | 2.32 | 18.61 | 1 | 1 | 4 | 1 | |
Hornet 4 Drive | 21.4 | 6 | 258 | 110 | 3.08 | 3.215 | 19.44 | 1 | 0 | 3 | 1 | |
Hornet Sportabout | 18.7 | 8 | 360 | 175 | 3.15 | 3.44 | 17.02 | 0 | 0 | 3 | 2 | |
Valiant | 18.1 | 6 | 225 | 105 | 2.76 | 3.46 | 20.22 | 1 | 0 | 3 | 1 | |
Duster 360 | 14.3 | 8 | 360 | 245 | 3.21 | 3.57 | 15.84 | 0 | 0 | 3 | 4 | |
Merc 240D | 24.4 | 4 | 146.7 | 62 | 3.69 | 3.19 | 20 | 1 | 0 | 4 | 2 | |
Merc 230 | 22.8 | 4 | 140.8 | 95 | 3.92 | 3.15 | 22.9 | 1 | 0 | 4 | 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load("~/Downloads/data/geo.RData") |
OlderNewer