Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Data visualization for IP addresses and networks

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

davidchall/ggip

Lifecycle: experimentalCRAN statusR build statusCoverage status

ggip is a{ggplot2} extension forvisualizing IP addresses and networks stored in{ipaddress} vectors.

Here are some of the key features:

  • IP data mapped to 2D plane by aunified coordinate system
  • Compatible withexisting ggplot2 layers
  • CustomIP-specific layers for common use cases
  • Full support for bothIPv4 and IPv6 address spaces

Installation

You can install the released version of ggip fromCRAN with:

install.packages("ggip")

Or you can install the development version from GitHub:

# install.packages("remotes")remotes::install_github("davidchall/ggip")

Usage

Plotting with {ggip} follows most of the conventions set by{ggplot2}. A major difference is thatcoord_ip() is required to map IP data to the 2D grid (addresses topoints and networks to rectangles). Learn more invignette("ggip").

Here’s a quick showcase of what’s possible:

library(tidyverse)library(ggfittext)library(ggip)ggplot(ip_data)+  stat_summary_address(aes(ip=address))+  geom_hilbert_outline(color="grey80")+  geom_fit_text(    aes(xmin=network$xmin,xmax=network$xmax,ymin=network$ymin,ymax=network$ymax,label=label    ),data=iana_ipv4 %>% filter(allocation=="Reserved"),color="#fdc086",grow=TRUE  )+  scale_fill_viridis_c(name=NULL,trans="log2",na.value="black")+  coord_ip(pixel_prefix=20)+  theme_ip_dark()#> Warning: Transformation introduced infinite values in discrete y-axis

About

Data visualization for IP addresses and networks

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp