[R] Joining Histograms Into a Figure

Edward Wijaya ewijaya at gmail.com
Mon May 26 06:46:21 CEST 2008


Hi,

I have two histograms created separately using
the following code. It creates two separate figures.

dat <- read.table(file="GDS1096.modelout", head = FALSE )

__BEGIN__
dat <- read.table(file="GDS1096.modelout", head = FALSE )

hist(dat$V2, main="AIC Freq", xlab = "\# Component", breaks = 36, xlim =
c(0,max(dat$V2)), col = "dark red", freq = TRUE)
hist(dat$V3, main="BIC Freq", xlab = "\# Component", breaks = 36, xlim =
c(0,max(dat$V2)), col = "blue", freq = TRUE)
__END__

How can I joint this two histograms into one figure?

Regards,
Edward



More information about the R-help mailing list