ip_to_cartesian | R Documentation |
These functions are used internally by coord_ip()
to map
ip_address
and ip_network
vectors to Cartesian coordinates. They are exposed externally to support use
of these coordinates outside of ggplot2.
address_to_cartesian(
address,
canvas_network = ip_network("0.0.0.0/0"),
pixel_prefix = 16,
curve = c("hilbert", "morton")
)
network_to_cartesian(
network,
canvas_network = ip_network("0.0.0.0/0"),
pixel_prefix = 16,
curve = c("hilbert", "morton")
)
address |
An |
canvas_network |
An |
pixel_prefix |
An integer scalar that sets the prefix length of the network represented by a single pixel. The default value is 16. Increasing this effectively improves the resolution of the plot. |
curve |
A string to choose the space-filling curve. Choices are
|
network |
An |
A data.frame containing columns:
address_to_cartesian()
: x
and y
network_to_cartesian()
: xmin
, ymin
, xmax
and ymax
address_to_cartesian(ip_address("192.168.0.1"))
network_to_cartesian(ip_network("224.0.0.0/4"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.