[R] R2.11.0 - rasterImage() and barplot fill-patterns
Hello Peter, Thank you, and the R core team, for the new release. I see that in R 2.11.0 there is now support for rendering of raster (bitmap) images through rasterImage(). I am wondering - can this be used to create a texture/fill-pattern for hist()/barplot() ? (A request made several times throughout the years on the mailing list. For example: http://osdir.com/ml/lang.r.general/2005-07/msg00799.html ) (I am also sending this e-mail to the maintainers of lattice, ggplot2 and gplots in the hope for more perspectives) With much respect, Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) -- On Thu, Apr 22, 2010 at 12:01 PM, Peter Dalgaard pd@cbs.dk wrote: I've rolled up R-2.11.0.tar.gz a short while ago. This is a development release which contains a number of new features. Also, a number of mostly minor bugs have been fixed. See the full list of changes below. NOTE: The build platform has been changed for this release. Please watch out extra carefully for anomalies. You can get it from http://cran.r-project.org/src/base/R-2/R-2.11.0.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team Peter Dalgaard These are the md5sums for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = ac9746b4845ae81f51cfc99262f5 MD5 (COPYING) = eb723b61539feef013de476e68b5c50a MD5 (COPYING.LIB) = a6f89e2100d9b6cdffcea4f398e37343 MD5 (FAQ) = 5b653442bedab476a4eff7468192fb5f MD5 (INSTALL) = 70447ae7f2c35233d3065b004aa4f331 MD5 (NEWS) = 59017734fb8474f98f994c7a5a27f9fb MD5 (ONEWS) = a8c985af5ad5e9c7e0a9f502d07baeb4 MD5 (OONEWS) = 4f004de59e24a52d0f500063b4603bcb MD5 (R-latest.tar.gz) = c6c1e866299f533617750889c729bfb3 MD5 (README) = 433182754c05c2cf7a04ad0da474a1d0 MD5 (RESOURCES) = 020479f381d5f9038dcb18708997f5da MD5 (THANKS) = f2ccf22f3e20ebaa86f8ee5cc6b0f655 MD5 (R-2/R-2.11.0.tar.gz) = c6c1e866299f533617750889c729bfb3 This is the relevant part of the NEWS file: CHANGES IN R VERSION 2.11.0 SIGNIFICANT USER-VISIBLE CHANGES o Packages must have been installed under R = 2.10.0, as the current help system is the only one now supported. o A port to 64-bit Windows is now available as well as binary package repositiories: see the 'R Administration and Installation Manual'. o Argument matching for primitive functions is now done in the same way as for interpreted functions except for the deliberate exceptions call switch .C .Fortran .Call .External all of which use positional matching for their first argument, and also some internal-use-only primitives. o The default device for command-line R at the console on Mac OS X is now quartz() and not X11(). NEW FEATURES o The 'open' modes for connections are now interpreted more consistently. open = r is now equivalent to open = rt for all connections. The default open = now means rt for all connections except the compressed file connections gzfile(), bzfile() and xzfile() for which it means rb. o R CMD INSTALL now uses the internal untar() in package utils: this ensures that all platforms can install bzip2- and xz-compressed tarballs. In case this causes problems (as it has on some Windows file systems when run from Cygwin tools) it can be overridden by the environment variable R_INSTALL_TAR: setting this to a modern external tar program will speed up unpacking of large (tens of Mb or more) tarballs. o help(try.all.packages = TRUE) is much faster (although the time taken by the OS to find all the packages the first time it is used can dominate the time). o R CMD check has a new option '--timings' to record per-example timings in file pkg.Rcheck/pkg-Ex.timings. o The TRE library has been updated to version 0.8.0 (minor bugfixes). o grep[l], [g]sub and [g]regexpr now work in bytes in an 8-bit locales if there is no marked UTF-8 input string: this will be somewhat faster, and for [g]sub() give the result in the native encoding rather than in UTF-8 (which returns to the behaviour prior to R 2.10.0). o A new argument 'skipCalls' has been added to browser() so that it can report the original context when called by other debugging functions. o More validity checking of UTF-8 and MBCS strings is done by agrep() and the regular-expression matching functions.
Re: [R] R2.11.0 - rasterImage() and barplot fill-patterns
Hi, This idea was also discussed when Paul Murrell first announced the grid.raster function to R-devel, http://tolstoy.newcastle.edu.au/R/e8/devel/09/12/0912.html My personal conclusion was that vector fill patterns are generally better in terms of resolution and speed. Of course the situation might be different if one wanted to use a fancy image pattern, or if there was a fast implementation of tiling patterns at the C level. I wrote a proof-of-concept here --- my main issue is that the resulting grob is not vectorized, http://gridextra.googlecode.com/svn/trunk/inst/comparisonPattern.r Best, baptiste On 22 April 2010 14:10, Tal Galili tal.gal...@gmail.com wrote: Hello Peter, Thank you, and the R core team, for the new release. I see that in R 2.11.0 there is now support for rendering of raster (bitmap) images through rasterImage(). I am wondering - can this be used to create a texture/fill-pattern for hist()/barplot() ? (A request made several times throughout the years on the mailing list. For example: http://osdir.com/ml/lang.r.general/2005-07/msg00799.html ) (I am also sending this e-mail to the maintainers of lattice, ggplot2 and gplots in the hope for more perspectives) With much respect, Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) -- On Thu, Apr 22, 2010 at 12:01 PM, Peter Dalgaard pd@cbs.dk wrote: I've rolled up R-2.11.0.tar.gz a short while ago. This is a development release which contains a number of new features. Also, a number of mostly minor bugs have been fixed. See the full list of changes below. NOTE: The build platform has been changed for this release. Please watch out extra carefully for anomalies. You can get it from http://cran.r-project.org/src/base/R-2/R-2.11.0.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team Peter Dalgaard These are the md5sums for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = ac9746b4845ae81f51cfc99262f5 MD5 (COPYING) = eb723b61539feef013de476e68b5c50a MD5 (COPYING.LIB) = a6f89e2100d9b6cdffcea4f398e37343 MD5 (FAQ) = 5b653442bedab476a4eff7468192fb5f MD5 (INSTALL) = 70447ae7f2c35233d3065b004aa4f331 MD5 (NEWS) = 59017734fb8474f98f994c7a5a27f9fb MD5 (ONEWS) = a8c985af5ad5e9c7e0a9f502d07baeb4 MD5 (OONEWS) = 4f004de59e24a52d0f500063b4603bcb MD5 (R-latest.tar.gz) = c6c1e866299f533617750889c729bfb3 MD5 (README) = 433182754c05c2cf7a04ad0da474a1d0 MD5 (RESOURCES) = 020479f381d5f9038dcb18708997f5da MD5 (THANKS) = f2ccf22f3e20ebaa86f8ee5cc6b0f655 MD5 (R-2/R-2.11.0.tar.gz) = c6c1e866299f533617750889c729bfb3 This is the relevant part of the NEWS file: CHANGES IN R VERSION 2.11.0 SIGNIFICANT USER-VISIBLE CHANGES o Packages must have been installed under R = 2.10.0, as the current help system is the only one now supported. o A port to 64-bit Windows is now available as well as binary package repositiories: see the 'R Administration and Installation Manual'. o Argument matching for primitive functions is now done in the same way as for interpreted functions except for the deliberate exceptions call switch .C .Fortran .Call .External all of which use positional matching for their first argument, and also some internal-use-only primitives. o The default device for command-line R at the console on Mac OS X is now quartz() and not X11(). NEW FEATURES o The 'open' modes for connections are now interpreted more consistently. open = r is now equivalent to open = rt for all connections. The default open = now means rt for all connections except the compressed file connections gzfile(), bzfile() and xzfile() for which it means rb. o R CMD INSTALL now uses the internal untar() in package utils: this ensures that all platforms can install bzip2- and xz-compressed tarballs. In case this causes problems (as it has on some Windows file systems when run from Cygwin tools) it can be overridden by the environment variable R_INSTALL_TAR: setting this to a modern external tar program will speed up unpacking of large (tens of Mb or more) tarballs. o help(try.all.packages = TRUE) is much faster (although the time taken by the OS to find all the packages the first time it is used can dominate the time). o R CMD check has a new option '--timings' to record per-example timings in file
Re: [R] R2.11.0 - rasterImage() and barplot fill-patterns
Hi On 23/04/2010 12:10 a.m., Tal Galili wrote: Hello Peter, Thank you, and the R core team, for the new release. I see that in R 2.11.0 there is now support for rendering of raster (bitmap) images through rasterImage(). I am wondering - can this be used to create a texture/fill-pattern for hist()/barplot() ? That is one possible application (see http://developer.r-project.org/Raster/raster-RFC.html) Paul (A request made several times throughout the years on the mailing list. For example: http://osdir.com/ml/lang.r.general/2005-07/msg00799.html ) (I am also sending this e-mail to the maintainers of lattice, ggplot2 and gplots in the hope for more perspectives) With much respect, Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) -- On Thu, Apr 22, 2010 at 12:01 PM, Peter Dalgaardpd@cbs.dk wrote: I've rolled up R-2.11.0.tar.gz a short while ago. This is a development release which contains a number of new features. Also, a number of mostly minor bugs have been fixed. See the full list of changes below. NOTE: The build platform has been changed for this release. Please watch out extra carefully for anomalies. You can get it from http://cran.r-project.org/src/base/R-2/R-2.11.0.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team Peter Dalgaard These are the md5sums for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = ac9746b4845ae81f51cfc99262f5 MD5 (COPYING) = eb723b61539feef013de476e68b5c50a MD5 (COPYING.LIB) = a6f89e2100d9b6cdffcea4f398e37343 MD5 (FAQ) = 5b653442bedab476a4eff7468192fb5f MD5 (INSTALL) = 70447ae7f2c35233d3065b004aa4f331 MD5 (NEWS) = 59017734fb8474f98f994c7a5a27f9fb MD5 (ONEWS) = a8c985af5ad5e9c7e0a9f502d07baeb4 MD5 (OONEWS) = 4f004de59e24a52d0f500063b4603bcb MD5 (R-latest.tar.gz) = c6c1e866299f533617750889c729bfb3 MD5 (README) = 433182754c05c2cf7a04ad0da474a1d0 MD5 (RESOURCES) = 020479f381d5f9038dcb18708997f5da MD5 (THANKS) = f2ccf22f3e20ebaa86f8ee5cc6b0f655 MD5 (R-2/R-2.11.0.tar.gz) = c6c1e866299f533617750889c729bfb3 This is the relevant part of the NEWS file: CHANGES IN R VERSION 2.11.0 SIGNIFICANT USER-VISIBLE CHANGES o Packages must have been installed under R= 2.10.0, as the current help system is the only one now supported. o A port to 64-bit Windows is now available as well as binary package repositiories: see the 'R Administration and Installation Manual'. o Argument matching for primitive functions is now done in the same way as for interpreted functions except for the deliberate exceptions call switch .C .Fortran .Call .External all of which use positional matching for their first argument, and also some internal-use-only primitives. o The default device for command-line R at the console on Mac OS X is now quartz() and not X11(). NEW FEATURES o The 'open' modes for connections are now interpreted more consistently. open = r is now equivalent to open = rt for all connections. The default open = now means rt for all connections except the compressed file connections gzfile(), bzfile() and xzfile() for which it means rb. o R CMD INSTALL now uses the internal untar() in package utils: this ensures that all platforms can install bzip2- and xz-compressed tarballs. In case this causes problems (as it has on some Windows file systems when run from Cygwin tools) it can be overridden by the environment variable R_INSTALL_TAR: setting this to a modern external tar program will speed up unpacking of large (tens of Mb or more) tarballs. o help(try.all.packages = TRUE) is much faster (although the time taken by the OS to find all the packages the first time it is used can dominate the time). o R CMD check has a new option '--timings' to record per-example timings in filepkg.Rcheck/pkg-Ex.timings. o The TRE library has been updated to version 0.8.0 (minor bugfixes). o grep[l], [g]sub and [g]regexpr now work in bytes in an 8-bit locales if there is no marked UTF-8 input string: this will be somewhat faster, and for [g]sub() give the result in the native encoding rather than in UTF-8 (which returns to the behaviour prior to R 2.10.0). o A new argument 'skipCalls' has been added to browser() so that it can report the original context when called by other debugging functions. o