Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Jul 19, 2024
1 parent 52f14fb commit f160a78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/plot_vector.R
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ setMethod("plot", signature(x="SpatVectorCollection", y="missing"),

if (nl==1) {
if (missing(main)) main = ""
out <- plot(x, 1, maxcell=maxcell, main=main[1], mar=mar, add=add, ...)
out <- plot(x[1], main=main[1], mar=mar, ...)
return(invisible(out))
}

Expand Down
3 changes: 1 addition & 2 deletions man/flowAccumulation.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SpatRaster
The algorithm is an adaptation of the one proposed by Zhou at al, 2019.
}

\seealso{\code{\link{terrain}},\code{\link{watershed}},\code{\link{NIDP}}}
\seealso{\code{\link{terrain}},\code{\link{watershed}}, \code{\link{NIDP}}}

\author{
Emanuele Cordano
Expand Down Expand Up @@ -71,7 +71,6 @@ plot(elev2)
## Flow direction raster
flowdir1<- terrain(elev1,v="flowdir")
flowdir2<- terrain(elev2,v="flowdir")
u <- terrain(flowdir2,"flowacc")

t(array(flowdir1[],rev(dim(flowdir1)[1:2])))
t(array(flowdir2[],rev(dim(flowdir2)[1:2])))
Expand Down

0 comments on commit f160a78

Please sign in to comment.