Package: cholera 0.8.0.9359

cholera: Amend, Augment and Aid Analysis of John Snow's Cholera Map

Amends errors, augments data and aids analysis of John Snow's map of the 1854 London cholera outbreak.

Authors:lindbrook [aut, cre]

cholera_0.8.0.9359.tar.gz
cholera_0.8.0.9359.zip(r-4.5)cholera_0.8.0.9359.zip(r-4.4)cholera_0.8.0.9359.zip(r-4.3)
cholera_0.8.0.9359.tgz(r-4.4-any)cholera_0.8.0.9359.tgz(r-4.3-any)
cholera_0.8.0.9359.tar.gz(r-4.5-noble)cholera_0.8.0.9359.tar.gz(r-4.4-noble)
cholera_0.8.0.9359.tgz(r-4.4-emscripten)cholera_0.8.0.9359.tgz(r-4.3-emscripten)
cholera.pdf |cholera.html
cholera/json (API)

# Install cholera in R:
install.packages('cholera', repos = c('https://lindbrook.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/lindbrook/cholera/issues

Datasets:

On CRAN:

choleradata-visualizationdatasetsepidemiologyjohn-snowpublic-healthtriangulation-delaunayvoronoivoronoi-polygons

73 exports 136 stars 5.22 score 81 dependencies 421 downloads

Last updated 23 hours agofrom:58bb512469eaf133f55afbd5f61b297e3d8a385e

Exports:addCaseaddDelaunayaddEuclideanPathaddEuclideanPathBaddFrameaddIndexCaseaddKernelDensityaddLandmarksaddLandmarkSquaresaddMilePostsaddNeighborhoodCasesaddNeighborhoodEuclideanaddNeighborhoodWalkingaddPlaguePitaddPumpaddRoadsaddSnowaddVoronoiaddWalkingPathaddWalkingPathBaddWhiteheadcaseDistancecaseLocatoreuclideanPatheuclideanPathBfixFatalitieslandmarkDatalatlongEuclideanPathlatlongNearestPumplatlongNeighborhoodDatalatlongNeighborhoodDataBlatlongNeighborhoodEuclideanlatlongNeighborhoodVoronoilatlongNeighborhoodWalkinglatlongStreetNameLocatorlatlongVoronoimapRangenearestPumpneighborhoodDataneighborhoodDataBneighborhoodEuclideanneighborhoodVoronoineighborhoodWalkingoxfordWeatherpearsonResidualspovertyLondonprofile2Dprofile3DpumpCasepumpDatapumpFatalitiespumpLocatorroadSegmentssegmentHighlightsegmentLengthsegmentLocatorsimulateFatalitiessnowColorssnowMapsnowNeighborhoodstreetHighlightstreetLengthstreetNameLocatorstreetNamesstreetNumberLocatortanakaContourPlottimeSeriesunitMeterunstackFatalitiesvoronoiPolygonswalkingPathwalkingPathBwinterTemperatures

Dependencies:askpassbase64encbslibcachemclassclassIntclicodetoolscpp11crosstalkcurlDBIdeldirdigeste1071elevatrevaluatefastmapfontawesomeforeachfsfurrrfuturegeosphereglobalsgluehighrHistDatahtmltoolshtmlwidgetshttrigraphisobanditeratorsjquerylibjsonliteKernSmoothknitrlatticelazyevallifecyclelistenvmagrittrmapisomaplegendMASSMatrixmemoisemimeopensslparallellypkgconfigpngpracmaprogressrproxypurrrR6rappdirsrasterRColorBrewerRcpprlangrmarkdowns2sasssfslippymathspsystanakaterrathreejstinytexTSPunitsvctrsviridisLitewkxfunyaml

"Unstacking" Bars

Rendered fromunstacking.bars.Rmdusingknitr::rmarkdownon Jun 29 2024.

Last update: 2024-03-31
Started: 2018-01-18

Duplicate and Missing Cases

Rendered fromduplicate.missing.cases.Rmdusingknitr::rmarkdownon Jun 29 2024.

Last update: 2024-03-31
Started: 2016-09-10

Kernel Density Plot

Rendered fromkernel.density.Rmdusingknitr::rmarkdownon Jun 29 2024.

Last update: 2019-11-14
Started: 2018-03-05

Parallelization

Rendered fromparallelization.Rmdusingknitr::rmarkdownon Jun 29 2024.

Last update: 2021-04-21
Started: 2019-08-27

Roads

Rendered fromroads.Rmdusingknitr::rmarkdownon Jun 29 2024.

Last update: 2024-03-31
Started: 2016-09-10

Time Series

Rendered fromtime.series.Rmdusingknitr::rmarkdownon Jun 29 2024.

Last update: 2019-02-10
Started: 2016-09-10

voronoiPolygons(): Tiles, Triangles and Polygons

Rendered fromtiles.polygons.Rmdusingknitr::rmarkdownon Jun 29 2024.

Last update: 2021-10-08
Started: 2018-12-23

Readme and manuals

Help Manual

Help pageTopics
choleracholera-package cholera
Add observed case(s) to plot.addCase
Add Delaunay triangles.addDelaunay
Add the path for the Euclidean distance between cases and/or pumps.addEuclideanPath
Add Euclidean path from case/landmark to nearest or selected pump. (prototype)addEuclideanPathB
Add map border to plot.addFrame
Highlight index case at 40 Broad Street.addIndexCase
Add 2D kernel density contours.addKernelDensity
Add landmarks to plot.addLandmarks
Add Golden and Soho Squares to plot.addLandmarkSquares
Add distance or time based "mileposts" to an observed walking neighborhood plot.addMilePosts
Add observed cases by neighborhood.addNeighborhoodCases
Add expected Euclidean pump neighborhoods.addNeighborhoodEuclidean
Add expected walking neighborhoods.addNeighborhoodWalking
Add plague pit (Marshall Street).addPlaguePit
Add selected pump(s) to plot.addPump
Add all streets and roads to plot.addRoads
Adds Snow's graphical annotation of the Broad Street pump walking neighborhood.addSnow
Add Voronoi cells.addVoronoi
Add the shortest walking path between a selected cases or pumps.addWalkingPath
Add walking path from case/landmark to nearest or selected pump. (prototype)addWalkingPathB
Add Rev. Henry Whitehead's Broad Street pump neighborhood.addWhitehead
Anchor or base case of each stack of fatalities.anchor.case
Numeric IDs of line segments that create the map's border frame.border
Compute distance between case fatalities (meters).caseDistance
Locate case by numerical ID.caseLocator
Compute path of the Euclidean distance between cases and/or pumps.euclideanPath
Compute Euclidean path coordinates from case/landmark to nearest/selected pump.euclideanPathB
Amended Dodson and Tobler's cholera data.fatalities
"Unstacked" amended cholera data with address as unit of observation.fatalities.address
"Unstacked" amended cholera fatalities data with fatality as unit of observation.fatalities.unstacked
Fix errors in Dodson and Tobler's digitization of Snow's map.fixFatalities
Map frame data c("x", "y") and c("lon", "lat").frame.data
Partitioned map frame points (segment endpoints).frame.sample
Centers of city squares.landmark.squares
Centers of city squares.landmark.squaresB
Landmark data.landmarkData
Orthogonal projection of landmarks onto road network.landmarks
Landmark coordinates.landmarksB
Orthogonal projection of observed address (latlong) cases onto road network.latlong.ortho.addr
Orthogonal projection of 13 original pumps (latlong).latlong.ortho.pump
Orthogonal projection of the 14 pumps from the Vestry Report (latlong).latlong.ortho.pump.vestry
"Expected" cases (latlong).latlong.regular.cases
Road "address" of simulated (i.e., "expected") cases (latlong).latlong.sim.ortho.proj
Plot Euclidean path to nearest pump (prototype).latlongEuclideanPath
Compute shortest georeferenced distances (and walking paths) to selected pumps (prototype).latlongNearestPump
Compute network graph of roads, cases and pumps.latlongNeighborhoodData
Compute network graph of roads, cases and pumps (prototype).latlongNeighborhoodDataB
Compute Euclidean pump neighborhoods (lat-long prototype).latlongNeighborhoodEuclidean
Compute Voronoi pump neighborhoods (lat-long prototype).latlongNeighborhoodVoronoi
Compute walking path pump neighborhoods.latlongNeighborhoodWalking
Locate road by name.latlongStreetNameLocator
Compute Georeferenced Latitude and Longitude of vertices of Voronoi polygons.latlongVoronoi
Compute xlim and ylim of Snow's map.mapRange
Compute shortest distances or paths to selected pumps.nearestPump
Compute network graph of roads, cases and pumps.neighborhoodData
Compute network graph of roads, cases and pumps (prototype).neighborhoodDataB
Compute Euclidean path pump neighborhoods.neighborhoodEuclidean
Compute Voronoi pump neighborhoods.neighborhoodVoronoi
Compute walking path pump neighborhoods.neighborhoodWalking
Orthogonal projection of observed cases onto road network.ortho.proj
Orthogonal projection of 13 original pumps.ortho.proj.pump
Orthogonal projection of the 14 pumps from the Vestry Report.ortho.proj.pump.vestry
Oxford monthly weather data, January 1853 - February 2024.oxford.weather
Weather data recorded in Oxford (Met Office UK).oxfordWeather
Compute Pearson Residuals (prototype)pearsonResiduals
Plague pit coordinates.plague.pit
Plot method for neighborhoodEuclidean().plot.euclidean
Plot the path of the Euclidean distance between cases and/or pumps.plot.euclidean_path
Plot the path of the Euclidean distance between cases and/or pumps.plot.euclidean_path_B
Plot the path of the Euclidean distance between cases and/or pumps.plot.latlong_euclidean_path
Plot method for latlongNeighborhoodData().plot.latlong_neighborhood_data
Plot method for latlongNeighborhoodWalking().plot.latlong_walking
Plot method for latlongNeighborhoodEuclidean()plot.latlongEuclidean
Plot method for latlongNeighborhoodVoronoi()plot.latlongVoronoi
Plot method for neighborhoodData().plot.neighborhood_data
Plot method for oxfordWeather().plot.oxfordWeather
Plot method for povertyLondon().plot.povertyLondon
Plot method for profilePerspective().plot.profile_perspective
Plot aggregate time series data from Vestry report.plot.time_series
Plot Voronoi neighborhoods.plot.voronoi
Plot method for neighborhoodWalking().plot.walking
Plot the walking path between selected cases and/or pumps.plot.walking_path
Plot the walking path between selected cases and/or pumps.plot.walking_path_B
Plot method for winterTemperatures().plot.winterTemperatures
Poverty and Born in London.povertyLondon
Print method for neighborhoodEuclidean().print.euclidean
Print method for euclideanPath().print.euclidean_path
Print method for walkingPathB().print.euclidean_path_B
Print method for latlongNeighborhoodVoronoi().print.latlongVoronoi
Print summary data for timeSeries().print.time_series
Print method for neighborhoodVoronoi().print.voronoi
Print method for neighborhoodWalking().print.walking
Print method for walkingPath().print.walking_path
Print method for walkingPathB().print.walking_path_B
2D Profile .profile2D
3D Profile.profile3D
Extract numeric case IDs by pump neighborhood.pumpCase
Compute pump coordinates.pumpData
Compute fatalities by pump.pumpFatalities
Locate water pump by numerical ID.pumpLocator
Dodson and Tobler's pump data with street name.pumps
Vestry report pump data.pumps.vestry
Sample of road intersections (segment endpoints).rd.sample
Rectangular filter data.rectangle.filter
"Expected" cases.regular.cases
Dodson and Tobler's street data transformed into road segments.road.segments
Dodson and Tobler's street data with appended road names.roads
Reshape 'roads' data frame into 'road.segments' data frame.roadSegments
Highlight segment by ID.segmentHighlight
Compute length of road segment.segmentLength
Plot/Locate road segment by ID.segmentLocator
Road "address" of simulated (i.e., "expected") cases.sim.ortho.proj
List of "simulated" fatalities grouped by walking-distance pump neighborhood.sim.pump.case
Walking distance to Broad Street Pump (#7).sim.walking.distance
Generate simulated fatalities.simulateFatalities
Snow neighborhood fatalities.snow.neighborhood
Create a set of colors for pump neighborhoods.snowColors
Plot John Snow's cholera map.snowMap
Plotting data for Snow's graphical annotation of the Broad Street pump neighborhood.snowNeighborhood
Highlight road by name.streetHighlight
Compute length of selected street.streetLength
Locate road by name.streetNameLocator
Street names (alphabetized).streetNames
Locate road by numerical ID.streetNumberLocator
Summary method for neighborhoodEuclidean().summary.euclidean
Summary method for neighborhoodVoronoi().summary.voronoi
Summary method for neighborhoodWalking().summary.walking
Tanaka contour plot.tanakaContourPlot
Aggregate time series fatality data from the Vestry report.timeSeries
Convert nominal map distance to meters or yards.unitMeter
Unstack "stacks" in Snow's cholera map.unstackFatalities
Coordinates of Voronoi polygon vertices for original map.voronoi.polygons
Coordinates of Voronoi polygon vertices for Vestry Report map.voronoi.polygons.vestry
Extract vertices of Delaunay triangles and Dirichelet (Voronoi) tiles.voronoiPolygons
Compute the shortest walking path between cases and/or pumps.walkingPath
Compute walking path from case/landmark to nearest or selected pump.walkingPathB
Average Winter Temperatures.winterTemperatures