# NOT RUN {
## Example 1
## for data already set up for levelplot
loaPlot(volcano, panel=panel.loaLevelPlot)
## Example 2
## Surface smooth
loaPlot(copper~longitude*latitude, data= lat.lon.meuse,
panel=panel.surfaceSmooth, grid=TRUE,
too.far=0.1, col.regions=3:2)
## Example 3
## (not run)
## 3a. Specialist kernel density panel example
#a <- rnorm(1000)
#b <- rnorm(1000)
#c <- rnorm(1000)
#compare:
#xyplot(a~b, panel = panel.kernelDensity, at = 0:5*5)
#loaPlot(~a*b, panel = panel.kernelDensity)
# Note 1:
# at sets col.regions for the color surface, but, as this is calculated
# in-panel, this is not known at time of call. So, you need to set when
# using specialist panels with standard lattice plots.
# (Same is true for any panel where plot attributes that are set in-panel
# and is needed to be known in all panels and keys for consistent output.)
# loa panels include separate process and plot steps that panelPal can
# use to track these.
# Note 2:
# By default, the panel ignores z data.
#
# compare:
# loaPlot(c~a*b, panel = panel.kernelDensity) #where z term (c) ignored
# loaPlot(c~a*b, panel = panel.kernelDensity, n=100) #finer surface resolution
#but z term STILL ignored
## 3b. Specialist bin plot panel example
# By default, the panel bins supplied z case as mean
# modify by supplying alternative as statistic
#loaPlot(c~a*b, panel = panel.binPlot)
#loaPlot(c~a*b, panel = panel.binPlot, statistic=max)
# Note:
# If z is not supplied, statistic defaults to length to give a count
# loaPlot(~a*b, panel = panel.binPlot) #where z term not supplied
#etc.
# }
Run the code above in your browser using DataLab