inst/doc/kstMatrix.R

## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(kstMatrix)
library(grDevices)
library(sets)
library(pks)

## ----kstMatrixClasses, echo=FALSE, fig.cap="Structure of <tt>kstMatrix</tt> classes", out.width="700"----
knitr::include_graphics("kstMatrixClasses.png")

## -----------------------------------------------------------------------------
plot(xpl$space)
plot(xpl$sr)

## -----------------------------------------------------------------------------
plot(xpl$sr, colors="#aaffaa", vertexshape="box")

## -----------------------------------------------------------------------------
plot(kmneighbourhood(c(1,1,0,0), xpl$space, include=TRUE), state=c(1,1,0,0), edgelabel=TRUE)

## -----------------------------------------------------------------------------
plot(xpl$space, horizontal=TRUE, arrowtail="open")
plot(xpl$space, arrowhead="empty")

Try the kstMatrix package in your browser

Any scripts or data that you put into this service are public.

kstMatrix documentation built on Dec. 18, 2025, 5:07 p.m.