Skip to content

Commit

Permalink
add gallery as vignette; #146
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed May 6, 2024
1 parent 749b9c4 commit 2013a07
Show file tree
Hide file tree
Showing 2 changed files with 460 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vignettes/csdacm.Rnw
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ spplot.stgdf <- function(obj, zcol = 1, ..., format = NULL) {
if (is.null(format)) format <- "%Y-%m-%d %H:%M:%S"
cc <- coordinates(obj)
df <- unstack(data.frame(obj[[zcol]], cc[,3]))
ns <- as.character(coordinatevalues(getGridTopology(obj))[[3]] + ISOdate(1970,1,1,0,0,0), format = format)
ns <- format(coordinatevalues(getGridTopology(obj))[[3]] + ISOdate(1970,1,1,0,0,0), format = format)
cc2d <- cc[cc[,3] == min(cc[,3]), 1:2]
obj <- SpatialPixelsDataFrame(cc2d, df)
spplot(obj, names.attr = ns,...)
Expand All @@ -913,7 +913,8 @@ setMethod("spplot", "SpatialTimeGridDataFrame", spplot.stgdf)
.iwidth <- 6
.iheight <- 4
<<afig>>
print(spplot(x, format = "%H:%M:%S", as.table=TRUE))
#print(spplot(x, format = "%H:%M:%S", as.table=TRUE))
print(spplot(x, as.table=TRUE))
<<zfig>>
<<figreset>>
@
Expand Down
Loading

0 comments on commit 2013a07

Please sign in to comment.