Learn R Programming

drhutools (version 1.0.1)

Political Science Academic Research Gears

Description

Using these tools to simplify the research process of political science and other social sciences. The current version can create folder system for academic project in political science, calculate psychological trait scores, visualize experimental and spatial data, and set up color-blind palette, functions used in academic research of political psychology or political science in general.

Copy Link

Version

Install

install.packages('drhutools')

Monthly Downloads

161

Version

1.0.1

License

MIT + file LICENSE

Maintainer

Yue Hu

Last Published

December 4th, 2025

Functions in drhutools (1.0.1)

folderSystem

Folder hierarchy creator for academic research
gb_cols

Function to extract colors as hex codes.
cdplot

Visualizing the experimental outcome with cumulative distribution functions.
scale_fill_gb

Color scale constructors for gold & black colors
toy_poly

Toy Dataset for goodmap
gb_pal

Function to interpolate a gold-black color palette.
goodmap

The goodmap function is designed to create interactive PNG Map or GIF Map from a provided data file. It supports two types of maps: point and polygon. The function can visualize data by either plotting points based on geographical coordinates or highlighting regions polygon based on their administrative boundaries (province or city level). Additionally, the function can generate animated that showcase the change of data.
scale_color_gb

Fill scale constructors for gold & black colors
traits

Calculate psychological traits based on
leafletcn.map.names

Leaflet Map Names Dataset