R
top of page

R


R is a programming language that is widely used for representing statistical data graphically. See the well thought out and no frills web site for the R project at https://www.r-project.org/ . You can download the free R software for Windows here.

In order to show a spectrum of colors from a given color you can enter:

plotCol (nearRcolor ("green", "Lab", dist=50), nrow=3)

This will generate this image which shows in 3 rows shades a certain distance from the base color green. Right clicking on the image will allow you copy the image as a bitmap.

If you type in demo(graphics), you'll be walked through a series of pie, line, bar and other charts that R can generate. Here I have modified one of these scripts to create my own graphic:

> > edrm <- c(0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11)

> names(edrm) <- c("Information Governance", "Identification", "Preservation", + "Collection", "Processing", "Review", "Analysis", "Production","Presentation")

> pie(pie.sales, + col = c("orange","red","purple","purple","blue","blue","blue","seagreen3","green")) Waiting to confirm page change...

> title(main = "EDRM", cex.main = 1.8, font.main = 1)

> title(xlab = "(Electronic Discovery Reference Model)", cex.lab = 0.8, font.lab = 3)

> > par(bg="yellow")

> n <- 10

> g <- gl(n, 100, n*100)

> x <- rnorm(n*100) + sqrt(as.numeric(g))

> boxplot(split(x,g), col="lavender", notch=TRUE)

In the R console, if you right click and select 'Paste command only' and enter this script you'll get this image:


bottom of page