squish: Function for plotting network on an angle

Description Usage Arguments Examples

View source: R/squish.R

Description

This function plots a network on the angle specified, for layering plots

Usage

1
squish(coords, yflat = 0.5, xover = 0.5)

Arguments

coords

matrix of coordinates, with each row a node, the first column the x coordinate, and the second column the y

yflat

proportional flattening of map

xover

proportional right movement of map

Examples

1
2
3
4
5
Z1 <- matrix(c(0.5,0.8, 0.9,0.9, 0.1,0.1, 0.5,0.5), byrow=T, ncol=2)
Z1
plot(Z1, xlim=c(0,2), ylim=c(0,1))
Z2 <- squish(Z1)
plot(Z2, xlim=c(0,2), ylim=c(0,1))

GarrettLab/INApreliminary documentation built on June 7, 2021, 10:59 a.m.