newPixmapRGB              package:rtiff              R Documentation

_C_r_e_a_t_e _a_n _R_G_B _p_i_x_m_a_p

_D_e_s_c_r_i_p_t_i_o_n:

     A utility function to create an RGB pixmap object out of 3
     rasters.

_U_s_a_g_e:

     newPixmapRGB(red = NULL, green = NULL, blue = NULL)

_A_r_g_u_m_e_n_t_s:

     red: The red raster (a matrix)  

   green: The green raster (a matrix) 

    blue: The blue raster (a matrix) 

_V_a_l_u_e:

     An object of type pixmap representing the resulting RGB image.

_A_u_t_h_o_r(_s):

     Eric Kort <eric.kort@vai.org>

_E_x_a_m_p_l_e_s:

     #this is tautological, but demonstrates the syntax...
     library(rtiff)
     tif <- readTiff(paste(.path.package("rtiff"), "/tiff/jello.tif", sep=""))
     myPixmap <- newPixmapRGB(tif@red, tif@green, tif@blue)
     plot(myPixmap)

     #let's scramble the color channels just for fun

     get(getOption("device"))()
     myPixmap <- newPixmapRGB(tif@blue, tif@red, tif@green)
     plot(myPixmap)

