title: Why is my raster stack displaying all of the individual raster images instead of a merged raster image?
body: <p>I am attempting to plot an image composed of a stack of raster images. Using reproducible data:</p>
  <pre><code>library(raster)
  b &lt;- brick(system.file(&quot;external/rlogo.grd&quot;, package = &quot;raster&quot;))
  b
  #class      : RasterBrick 
  #dimensions : 77, 101, 7777, 3  (nrow, ncol, ncell, nlayers)
  #resolution : 1, 1  (x, y)
  #extent     : 0, 101, 0, 77  (xmin, xmax, ymin, ymax)
  #crs        : +proj=merc +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0 
  #source     : /Library/Frameworks/R.framework/Versions/4.0/Resources/library/raster/external/rlogo.grd 
  #names      : red, green, blue 
  #min values :   0,     0,    0 
  #max values : 255,   255,  255 
  
  library(rasterVis)
  levelplot(b)
  </code></pre>
  <p>This produces a <a href="https://i.stack.imgur.com/kCfms.png" rel="nofollow noreferrer">image</a> of the 3 raster layers side by side</p>
  <p>What I want to do is plot it so that the image displays the &quot;R&quot; logo only once with the 'red', 'green' and 'blue' layers stacked on top of each other by using their mean values.</p>
  <p>Can anyone please help achieve this? Thank you!</p>