All Projects → asjadnaqvi → Stata-schemes

asjadnaqvi / Stata-schemes

Licence: MIT license
Here you will find various ready-to-use Stata schemes.

Programming Languages

Stata
111 projects
TeX
3793 projects

Projects that are alternatives of or similar to Stata-schemes

PlotTwist
PlotTwist - a web app for plotting and annotating time-series data
Stars: ✭ 21 (-75.29%)
Mutual labels:  ggplot2
FunnelPlotR
Funnel plots for comparing institutional performance, with overdispersion adjustment
Stars: ✭ 39 (-54.12%)
Mutual labels:  ggplot2
mapr
Map species occurrence data
Stars: ✭ 34 (-60%)
Mutual labels:  ggplot2
ggQC
ggQC
Stars: ✭ 43 (-49.41%)
Mutual labels:  ggplot2
ggbg
Miscellaneous Ggplot2 Extensions
Stars: ✭ 21 (-75.29%)
Mutual labels:  ggplot2
ggwaffle
Creating waffle charts in a ggplot friendly way
Stars: ✭ 45 (-47.06%)
Mutual labels:  ggplot2
value-investing-studies
Data Analysis Studies on Value Investing
Stars: ✭ 66 (-22.35%)
Mutual labels:  ggplot2
ggtrack
restlessdata.com.au/ggtrack
Stars: ✭ 39 (-54.12%)
Mutual labels:  ggplot2
ggHoriPlot
A user-friendly, highly customizable R package for building horizon plots in ggplot2
Stars: ✭ 115 (+35.29%)
Mutual labels:  ggplot2
TDAstats
R pipeline for computing persistent homology in topological data analysis. See https://doi.org/10.21105/joss.00860 for more details.
Stars: ✭ 26 (-69.41%)
Mutual labels:  ggplot2
stmprinter
Print multiple stm model dashboards to a pdf file for inspection
Stars: ✭ 34 (-60%)
Mutual labels:  ggplot2
NBA-Shot-Charts
Create NBA shot charts using data scrapped from stats.nba.com and R package ggplot2.
Stars: ✭ 33 (-61.18%)
Mutual labels:  ggplot2
imprint
Create Customized 'ggplot2' and 'R Markdown' Themes for Your Organization
Stars: ✭ 24 (-71.76%)
Mutual labels:  ggplot2
gameofthrones
🎨 Game of Thrones inspired palette for R
Stars: ✭ 69 (-18.82%)
Mutual labels:  ggplot2
R4Econ
R Code Examples Multi-dimensional/Panel Data
Stars: ✭ 16 (-81.18%)
Mutual labels:  ggplot2
r-whatsapp-analysis-parte1
Análisis de texto y visualización de datos con R, de conversaciones de WhatsApp, primer parte. Uso de librería rwhatsapp.
Stars: ✭ 22 (-74.12%)
Mutual labels:  ggplot2
TidyTuesday
📊 Collection of #TidyTuesday Visualisations! 📈
Stars: ✭ 59 (-30.59%)
Mutual labels:  ggplot2
basemapR
Contains functions to add base maps to ggplot2 maps
Stars: ✭ 14 (-83.53%)
Mutual labels:  ggplot2
rockthemes
R colour palettes based on classic rock album covers.
Stars: ✭ 30 (-64.71%)
Mutual labels:  ggplot2
ggdogs
The geom you always wished for adding dogs to ggplot2
Stars: ✭ 28 (-67.06%)
Mutual labels:  ggplot2

StataMin issues license Stars version release

SCHEMEPACK v1.1

In this repository are various ready-to-use Stata schemes. Most of the schemes have been programmed in three flavors: white, black, and gg (grey). As the names suggest, these are the background colors, where the last one is inspired by the ggplot2 scheme in R.

These schemes are procedurally generated where the colors and other information is introduced in the schemes using scripts. The core white scheme is based on the Cleanplots theme (Mize 2018) that itself is derived from the plainplots theme (Bischof 2017). The colors have been passed on to the scheme using Ben Jann's colorpalette package (Jann 2018).

  • The dofile contains the script to test the code.
  • The graph folder contains the high resolution sample figures.

Link to the Medium article that describes these schemes: Stata graph schemes by The Stata Guide. Here you can learn how to program your own schemes.

How to install and use SCHEMEPACK

To install SCHEMEPACK, you can either get them directly from SSC (preferred):

ssc install schemepack, replace

or install them from GitHub:

(GitHub files might contain latest updates that have not been currently pushed to SSC).

net install schemepack, from("https://raw.githubusercontent.com/asjadnaqvi/Stata-schemes/main/schemes/") replace

Once installed, please see help schemepack for the scheme descriptions and test them out.

You can also download and run the scheme_test.do dofile to test various graph schemes that uses this test data:

use "https://github.com/asjadnaqvi/Stata-schemes/blob/main/scheme_test.dta?raw=true", clear

or your own datasets!

Please report errors or bugs or suggestions to improve the schemes. Not all graphs types have been tested and fine tuned. Several new schemes coming soon!

⚠️ A bug for Stata 15 was reported (June 2021). If you are using Stata 15, then the gg schemes won't work due to comptability issues. Type which scheme-s2color.scheme. If it shows 2017, then don't use gg schemes. The white and black schemes should be fine. If the version is 2019 or higher (Stata 16+), then all the schemes should run fine.

Change log

  • 05 Mar 2022: A new scheme based on Ukraine's flag colors.
  • 15 Nov 2021: A new scheme based on Taylor Swift's Red album colors added. Minor fixes to the help file.
  • 28 Oct 2021: MAJOR UPDATE: schemes released on SSC (ssc install schemepack, replace). They collection has been renamed from tsg_schemes to schemepack to make it more generic and easier to remember. Black schemes have a notch darker background (its not pure black). Bar graph outlines adjusted to make them more visible. Otherwise some schemes were blending into the background.
  • 28 Jun 2021: Minor errors in templates have been fixed. For example bar labels were showing in the wrong color in the black themes. The test file has been reduced in size. The preview graphs have been regenerated. The number of graphs show in the preview below have been reduced except for the tableau schemes. All files exist in the figure folder though.
  • 26 Jun 2021: Two new schemes added: neon and rainbow. Neon tests a new and more generic scheme generator script. Rainbow celebrates the 2021 Pride month and introduces the 6 pride flag colors in the schemes. This scheme is fairly limited in the sense that it only has six colors. But these are more than enough for presentations etc. This is also derived from the generic scheme template used for the Neon scheme.
  • 15 Jun 2021: Schemes updated to make them compatible with Stata 15 and earlier. The s2-scheme.scheme was updated to a new version in 2019 and the older scheme version was giving errors.
  • 16 Apr 2021: Very minor fixes to some colors. Histograms fixed and added to the graphs. Following schemes added: brbg, piyg, ptol, jet, w3d
  • 08 Apr 2021: Repository created with pkg file and the following schemes added: tableau, cividis, viridis, hue

How can you support the schemes?

You can support the schemes by using them 😏

You can also:

"Buy Me A Coffee!!!"

Preview

A preview of the schemes is given below. The latest ones are put on top. Not every scheme has been fine tuned for each and every aspect. Regardless, all elements can be modified from the graph interface window, which overwrite the scheme defaults. Some schemes are fairly robust. For example, white_tableau and white_w3d work really well and I use them most of the time. Some themes are great for presentations. For example, the dark themes on dark backgrounds, or gg schemes which keep the focus on the graph.

Each scheme has a standard number of built-in colors. Some schemes have been designed with few colors. These are highlighted in brackets in front of the scheme name. If no number is specified, the standard 12 color range is used. Colors are repeated if you have more graph elements than the defined number of colors. In this case, you can either: (a) think again about how much information you want to display, (b) cutomize elements like adding dotted or dashed lines etc., or (c) automate colors following the Cutomizing color schemes guide.

Standalone schemes

Ukraine (8 colors)

swift_red (8 colors)

Taylor Swift dropped a new album, Red, and we dropped a new Stata scheme celebrating it:

neon (12 colors)

Glowing neons on a black background. Perfect for a dark beamer presentation:

rainbow (6 colors)

Celebrating pride (2021 edition):

Tableau color scheme

white_tableau

black_tableau

gg_tableau

Cividis color scheme

white_cividis

black_cividis

gg_cividis

Viridis color scheme

white_viridis

black_viridis

gg_viridis

Hue color scheme (default ggplot2 colors)

white_hue

black_hue

gg_hue

brbg color scheme

white_brbg

black_brbg

gg_brbg

piyg color scheme

white_piyg

black_piyg

gg_piyg

ptol color scheme

white_ptol

black_ptol

gg_ptol

jet color scheme

white_jet

black_jet

gg_jet

w3d color scheme

white_w3d

black_w3d

gg_w3d

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].