This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| DNS Firewall Based on Machine Learning analysis and ML | |
| Created on Fri Feb 2 14:18:25 2024 | |
| @author: rob.harrand | |
| """ | |
| import os | |
| import pandas as pd | |
| import matplotlib.pyplot as plt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(tidyverse) | |
| library(rgeos) | |
| library(rgdal) | |
| library(maptools) | |
| library(lubridate) | |
| library(animation) | |
| library(gridExtra) | |
| #Map -------- | |
| #UK Shapefile from .. https://geoportal.statistics.gov.uk/datasets/1d78d47c87df4212b79fe2323aae8e08_0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ####################################################### | |
| #Code for Medium article on Animal Rights | |
| #Rob Harrand | |
| #2020-03-16 | |
| ####################################################### | |
| # Load packages ------------------------ | |
| require(ggplot2) | |
| require(ggrepel) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Script to create animation in R of Leeds Road Traffic Accident Data | |
| ### Road traffic accidents, (c) Leeds City Council, 2009-2016, https://datamillnorth.org/dataset/road-traffic-accidents' | |
| ### This information is licensed under the terms of the Open Government Licence.' | |
| #Note that you'll need imagemagick installed on your system for this code to work | |
| #Load libraries, | |
| require(rgdal) | |
| require(stringr) | |
| require('ggplot2') |