50 tons de cinza:

require(ggplot2)
grey50 <- data.frame(
x = rep(1:10, 5),
y = rep(1:5, each=10),
c = unlist(lapply(seq(10,255,5), FUN=function(x) { rgb(x,x,x, max=255) })),
t = unlist(lapply(seq(10,255,5), FUN=function(x) { ifelse(x > 255/2, 'black', 'white') }))
)
ggplot(grey50, aes(x=x, y=y, fill=c, label=c, color=t)) + 
geom_tile() + geom_text(size=4) +
scale_fill_identity() + scale_color_identity() + ylab(NULL) + xlab(NULL) + 
theme(axis.ticks=element_blank(), axis.text=element_blank())

Categories: Sem categoria

Related Posts

Sem categoria

raid 0 vs raid 10

http://www.zdnet.com/blog/storage/raid-10-is-the-cadillac-of-raid/131 https://bitcointalk.org/index.php?topic=28411.0 http://www-03.ibm.com/systems/resources/Demartek_IBM_LSI_RAID_Controller_Performance_Evaluation_2009-10.pdf http://www.dell.com/downloads/global/products/pvaul/en/PERC6_PerfWP_WMD1120.pdf http://www.tomshardware.com/forum/245704-32-raid-raid http://www.dell.com/downloads/global/products/pvaul/en/PERC6_PerfWP_WMD1120.pdf RAID level Sequential Reads (MB/s) Sequential Writes (MB/s) Random Reads (IOPS) Random Writes (IOPS) RAID 0 Best Best Best Best RAID 10 Better Better Best Better http://louwrentius.com/benchmark-results-of-random-io-performance-of-different-raid-levels.html http://docs.oracle.com/cd/E19691-01/820-1847-20/appendixf.html#50515995_83606 https://www.kernel.org/doc/Documentation/filesystems/ext4.txt Read more…

Sem categoria

One Liners

https://blogs.oracle.com/ksplice/entry/the_top_10_tricks_of http://www.math.harvard.edu/computing/perl/oneliners.txt https://wiki.python.org/moin/Powerful%20Python%20One-Liners Related PostsZip each file separatelyraid 0 vs raid 10uau they release house of cards full season!  Can't wait to watch love!Report LGC

Sem categoria

Fixing sublime text 3 folder association in ubuntu 14.04

~/.local/share/applications/mimeapps.list change sublime to nautilus Related PostsBuild 3068 Release Date: 3 February 2015Mendeley sharing papers across computersMudando atalhos no Sublime Text 2Fixing Python 3.4 in Ubuntu Trusty 14.04Minitube on Ubuntu 12.04