[R] Boxplot with Data From file


For instance we have following data :
A,1,2,3
B,3,4,5
C,5,2,3
D,5,7,2

arguments <- commandArgs(TRUE)
mydata <- read.csv(file=arguments[1],head=FALSE,sep=",")
data <- t(mydata[,c(2:ncol(mydata))])
datay <- t(mydata[1])
boxplot( data  , main="Contoh Boxplot", xlab="data X", ylab="data Y",xaxt = "n")
#change x axis label
axis(1, at = 1:nrow(mydata), labels = datay)

Result :
boxplot

  1. There’s no “winning” or “losing” in Wajas, although some standards are considered higher than others.

    Montclair Presbyterian Church, Room 1, 5700 Thornhill Drive, Oakland, CA;.
    Unfortunately, this is more image than reality as the fact is that out
    of Seattle’s over 400 parks spanning over 6,200 acres of land,
    only 14 parks covering a mere 25 acres are considered “pesticide-free.

  1. No trackbacks yet.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s