junk <- dir(path="your_path", pattern="your_pattern") # ?dir
file.remove(junk) # ?file.removeClearly, for advanced needs, you can use system() and all the unix tools installed onto your machine.
junk <- dir(path="your_path", pattern="your_pattern") # ?dir
file.remove(junk) # ?file.remove#install.packages("xtable")
#library(xtable)
tmp <- matrix(rnorm(9), 3, 3)
xtmp <- xtable(tmp)
digits(xtmp) <- c(0,0,3,4)
print(xtmp, include.rownames = FALSE) # row names suppressedpng( "2plot1legend.png", width = 480, height = 680)
par(mfrow = c(2, 1), oma = c(0, 0, 0, 2))
plot(hp~mpg, data=mtcars, col=cyl,pch=19)
plot(disp~wt, data=mtcars, col=cyl,pch=19)
par(xpd=NA)
#legend(locator(1), legend=as.numeric(levels(factor(mtcars$cyl))), pch=19, col= as.numeric(levels(factor(mtcars$cyl))) )
legend(x=5.6, y=690, legend=as.numeric(levels(factor(mtcars$cyl))), pch=19, col= as.numeric(levels(factor(mtcars$cyl))) )
dev.off() |
|
||
| Read this FREE online! Full Book | PDF Summary | Podcast | ||
