R graph gallery

The blog is a collection of script examples with example data and output plots. R produce excellent quality graphs for data analysis, science and business presentation, publications and other purposes. Self-help codes and examples are provided. Enjoy nice graphs !!

Wednesday, May 22, 2013

RG #110: 3D scatter plot with multiple series in Y axis

›
X = seq(1, 100, 5) Y = seq (1, 100, 5) Z = rnorm (length (X), 10, 2) data1 <- data.frame (X, Y, ) data2 <- data.frame (X, Y, Z1 = Z - ...
1 comment:
Friday, May 3, 2013

RG#104: Rootogram plot

›
require(latticeExtra) require(lattice) library(lattice) s et.seed(1234) x1 <- rpois(1000, lambda = 25) plt <- rootogram(~x1,...

RG#109:small plot(s) with in a big plot

›
require(ggplot2) library(gridBase) plot(cos, -pi, 2*pi, ylim = c(-1.3, 1.5), col = "red") myd <- data.frame (X = 1:10, Y = c(...

RG#107: Plot 3d horizontal lines (bars) over map (world and US example)

›
library("maps") require(ggplot2) library(ggsubplot) world.map <- map("world", plot = FALSE, fill = TRUE) world_map ...

RG#106: add satellite imagery, or open street maps to your plots using openmap package (bing, mapquest)

›
library(OpenStreetMap) library(rgdal) # get world map map <- openmap(c(70,-179), c(-70,179)) plot(map) bingmap <- openmap...
›
Home
View web version
Powered by Blogger.