This is an additional theme for ggplot2
that generates an inverse black and white color scheme.
ggplot(mtcars, aes(wt, mpg)) + geom_point()
# Add theme_black()
ggplot(mtcars, aes(wt, mpg)) + geom_point(color = "white") + theme_black()
library(tidyverse) | |
library(sf) | |
library(mapboxapi) | |
library(tigris) | |
library(fasterize) | |
library(leaflet) | |
# Get county boundaries; you can analyze for any county | |
target_GEOID <- "48309" |
<!DOCTYPE qgis_style> | |
<qgis_style version="2"> | |
<symbols> | |
<symbol alpha="1" force_rhr="0" clip_to_extent="1" type="fill" name="pencilish"> | |
<layer class="MarkerLine" pass="0" locked="0" enabled="1"> | |
<prop k="average_angle_length" v="4"/> | |
<prop k="average_angle_map_unit_scale" v="3x:0,0,0,0,0,0"/> | |
<prop k="average_angle_unit" v="MM"/> | |
<prop k="interval" v="0.02"/> | |
<prop k="interval_map_unit_scale" v="3x:0,0,0,0,0,0"/> |
<!DOCTYPE qgis_style> | |
<qgis_style version="2"> | |
<symbols> | |
<symbol tags="Showcase" clip_to_extent="1" name="digital_rain" force_rhr="0" alpha="1" type="fill"> | |
<layer class="SimpleLine" pass="0" enabled="1" locked="0"> | |
<prop v="square" k="capstyle"/> | |
<prop v="5;2" k="customdash"/> | |
<prop v="3x:0,0,0,0,0,0" k="customdash_map_unit_scale"/> | |
<prop v="MM" k="customdash_unit"/> | |
<prop v="0" k="draw_inside_polygon"/> |
<!DOCTYPE qgis_style> | |
<qgis_style version="2"> | |
<symbols> | |
<symbol name="qartoon" force_rhr="0" clip_to_extent="1" alpha="1" type="fill"> | |
<layer class="SimpleFill" enabled="1" locked="0" pass="0"> | |
<prop v="3x:0,0,0,0,0,0" k="border_width_map_unit_scale"/> | |
<prop v="0,0,0,255" k="color"/> | |
<prop v="round" k="joinstyle"/> | |
<prop v="1,1" k="offset"/> | |
<prop v="3x:0,0,0,0,0,0" k="offset_map_unit_scale"/> |
import tweepy | |
import random | |
import pandas as pd | |
import time | |
#get your codes from https://apps.twitter.com/ | |
consumer_key = 'your_code_here' | |
consumer_secret = 'your_code_here' | |
access_token = 'your_code_here' | |
access_token_secret = 'your_code_here' |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<!-- | |
This file is licenced CC0 http://creativecommons.org/publicdomain/zero/1.0/ | |
--> | |
<head> | |
<title>Leaflet Maps Side by Side</title> | |
<link rel="stylesheet" href="/javascript/leaflet/leaflet.css" type="text/css" /> | |
<!--[if lte IE 8]><link rel="stylesheet" href="/javascript/leaflet/leaflet.ie.css" /><![endif]--> | |
<style type="text/css"> | |
body { |