Skip to content

Latest commit

 

History

History
224 lines (125 loc) · 8.41 KB

README.md

File metadata and controls

224 lines (125 loc) · 8.41 KB

RanglaPunjab

CRAN License: GPL v2 contributions welcome

R code that defines color palettes based on the unique, vibrant culture of Punjab, India.

Rangla Punjab translates to "Colorful Punjab".

And if you ever visit India, Rangla Punjab is a wonderful Punjabi theme village of generations gone by.

In the meantime, enjoy this R package :-)

Installation

To install stable CRAN version

install.packages("RanglaPunjab")

To install the latest development version from GitHub

install.packages("devtools")
devtools::install_github("ArtieLadie/RanglaPunjab")

Sample Code

3-D Pie Chart

Use RanglaPunjab to color pie charts.

library(RanglaPunjab)
library(plotrix)

slices <- c(10, 12, 4, 16, 8) 
lbls <- c("US", "UK", "Australia", "Germany", "France")
pie3D(slices,labels=lbls, explode=0.1, col=RanglaPunjab("Gidha"), main="Pie Chart of Countries ")

3-D Pie Chart

Bar Plot

Use CherryPickPalette to dynamically color bar plots.

library(RanglaPunjab)

counts <- table(mtcars$vs, mtcars$gear)
barplot(counts, main="Car Distribution by Gears and VS",
        xlab="Number of Gears", col=CherryPickPalette("Teej","Jutti"),
        legend = rownames(counts))

Bar Plot

Palettes

FieldsOfPunjab

Punjab translates to "Land of Five Rivers".

These rivers refer to the rivers Jhelum, Chenab, Ravi, Sutlej, and Beas.

All are tributaries of the Indus River, the Chenab being the largest.

The five rivers makes Punjab one of the most fertile regions of India.

Fields of Punjab

FieldsOfPunjab2

Punjab's fields are so breath-taking, had to add another palette.

Fields of Punjab 2

GoldenTemple

Golden Temple is the oldest place of worship for Sikhs.

Golden Temple

GoldenTemple2

And because the Golden Temple looks so different at Amrit Vaylaa (the ambrosial hours before dawn), had to add another palette.

Golden Temple 2

Pindh

Pindh translates to Village. Villages make up the bedrock of Punjab.

Pindh

Haveli

Havelis were grand mansions that bustled with life generations ago.

Many havelis have fallen into disrepair, yet they remain beautiful reminants of an era gone by.

Haveli

Haveli2

Havelis always had a courtyard. Usually light, airy, with meticulously decorated structures.

Haveli2

AmritsariKulcha

Mouthwatering dish of Amritsar, Punjab.

Amritsari Kulcha

CholeBhature

Another mouthwatering dish.

Chole Bhature

BiryaniRice

Biryani Rice, the best rice dish in the world, made with the one and only Basmati rice, originating from (you guessed it), Punjab.

Biryani Rice

AmritsariLassi

Amritsari Lassi is a thick, cooling yogurt-based (almost buttermilk) drink that compliments these heavy meals.

Or, Lassi can be enjoyed on it's own :-)

Amritsari Lassi

AmritsariPedeWaliLassi

Lassi can also be a dessert.

Amritsari Pede Wali Lassi is a decadant, cooling drink that includes milk-based pastries.

Certainly gives Hot Cocao and Marshmallows a run for their money!

Amritsari Pede Wali Lassi

Kulfi

Kulfi, a savory ice cream (ice cream is an under-statement) treat. Pistachio-based is most popular, yet it can be any flavor.

Kulfi

SohniMahiwal

Sohni Mahiwal - one of the many timeless and tragic lovestories of Punjab.

Sohni Mahiwal

HeerRanjha

Heer Ranjha - one of the many timeless and tragic lovestories of Punjab.

Heer Ranjha

Gidha

Gidha is a lively, festive dance done by ladies to celebrate and express joy!

This music video is a lovely Gidha performance.

Gidha

Gidha2

So many beautiful colors Gidha dancers wear - had to add another palette!

Gidha 2

Teej

Teej is generic name for festivals celebrated across India by girls and women.

In Punjab, this festival is known as Teeyan. Teeyan involves women getting together and performing Gidda, married women visiting their families and receiving gifts. It is also traditional for women to ride on swings.

Teej

Phulkari

Phulkari is an embroidery technique that means "Flower Work". In olden days women created these colorful shawls for themselves and family, making it a true folk art of Punjab. Now the Government is trying to promote this artform.

Phulkari

Phulkari2

Because I love colors so much.

Phulkaris are usually made into Dupattas to be worn with Salwar Kameez (Punjabi ladies's suit), as shown in the reference photo.

Phulkari

Jutti

Jutti are shoes. Who can live without shoes?

Jutti

Jutti2

More colorful, the better!

Jutti 2

Jutti3

And who cannot love jutti in every conceivable design!

Jutti 3

Paranda

With Paranda, one can never have a bad hair day!

Paranda