Code: Alles auswählen
library(ggplot2)
data = file.info(list.files(path="/tmp",full.names=TRUE))[1]
ausgabe <- ggplot(data, aes(x = size)) + geom_histogram( bins = 10)
ausgabe
Code: Alles auswählen
library(ggplot2)
path = "/var/"
bins = 20
data= file.info(list.files(path=path,full.names=TRUE))[1]
ausgabe <- ggplot(data, aes(x = size)) + geom_histogram( bins = bins, colour = "blue", fill = "#56B4E9") +
scale_y_continuous(name = "ungefähr so viele") +
scale_x_continuous(name = "und vielleicht so gross") +
theme(axis.line = element_line(size=1, colour = "black"),
panel.grid.major = element_blank(),
panel.grid.minor = element_blank(),
panel.border = element_blank(),
panel.background = element_blank(),
plot.title=element_text(size = 20, family="humor sans"),
text=element_text(size = 26, family="humor sans"),
axis.text.x=element_text(colour="black", size = 12),
axis.text.y=element_text(colour="black", size = 12)) +
ggtitle(paste("Dateien wo rumliegen in " , path, sep="") ) +
scale_fill_gradient("Count", low = "blue", high = "red")
ausgabe