Plotting in Private

Below are a set of examples of plotting in Private. I will update this post later with more explanation, but in the meantime these should provide some insight into how to construct plots. Note the Private plotting functions are based on the seaborn plotting library.

Acknowledgement: The plotting functionality and examples have been developed by Malinga Perera.

Relplots

totalbill = [16.99, 10.34, 21.01, 23.68, 24.59, 25.29, 8.77, 26.88, 15.04, 14.78, 10.27, 35.26, 15.42, 18.43, 14.83, 21.58, 10.33, 16.29, 16.97, 20.65, 17.92, 20.29, 15.77, 39.42, 19.82, 17.81, 13.37, 12.69, 21.7, 19.65, 9.55, 18.35, 15.06, 20.69, 17.78, 24.06, 16.31, 16.93, 18.69, 31.27, 16.04, 17.46, 13.94, 9.68, 30.4, 18.29, 22.23, 32.4, 28.55, 18.04, 12.54, 10.29, 34.81, 9.94, 25.56, 19.49, 38.01, 26.41, 11.24, 48.27, 20.29, 13.81, 11.02, 18.29, 17.59, 20.08, 16.45, 3.07, 20.23, 15.01, 12.02, 17.07, 26.86, 25.28, 14.73, 10.51, 17.92, 27.2, 22.76, 17.29, 19.44, 16.66, 10.07, 32.68, 15.98, 34.83, 13.03, 18.28, 24.71, 21.16, 28.97, 22.49, 5.75, 16.32, 22.75, 40.17, 27.28, 12.03, 21.01, 12.46, 11.35, 15.38, 44.3, 22.42, 20.92, 15.36, 20.49, 25.21, 18.24, 14.31, 14.0, 7.25, 38.07, 23.95, 25.71, 17.31, 29.93, 10.65, 12.43, 24.08, 11.69, 13.42, 14.26, 15.95, 12.48, 29.8, 8.52, 14.52, 11.38, 22.82, 19.08, 20.27, 11.17, 12.26, 18.26, 8.51, 10.33, 14.15, 16.0, 13.16, 17.47, 34.3, 41.19, 27.05, 16.43, 8.35, 18.64, 11.87, 9.78, 7.51, 14.07, 13.13, 17.26, 24.55, 19.77, 29.85, 48.17, 25.0, 13.39, 16.49, 21.5, 12.66, 16.21, 13.81, 17.51, 24.52, 20.76, 31.71, 10.59, 10.63, 50.81, 15.81, 7.25, 31.85, 16.82, 32.9, 17.89, 14.48, 9.6, 34.63, 34.65, 23.33, 45.35, 23.17, 40.55, 20.69, 20.9, 30.46, 18.15, 23.1, 15.69, 19.81, 28.44, 15.48, 16.58, 7.56, 10.34, 43.11, 13.0, 13.51, 18.71, 12.74, 13.0, 16.4, 20.53, 16.47, 26.59, 38.73, 24.27, 12.76, 30.06, 25.89, 48.33, 13.27, 28.17, 12.9, 28.15, 11.59, 7.74, 30.14, 12.16, 13.42, 8.58, 15.98, 13.42, 16.27, 10.09, 20.45, 13.28, 22.12, 24.01, 15.69, 11.61, 10.77, 15.53, 10.07, 12.6, 32.83, 35.83, 29.03, 27.18, 22.67, 17.82, 18.78]
tip = [1.01, 1.66, 3.5, 3.31, 3.61, 4.71, 2.0, 3.12, 1.96, 3.23, 1.71, 5.0, 1.57, 3.0, 3.02, 3.92, 1.67, 3.71, 3.5, 3.35, 4.08, 2.75, 2.23, 7.58, 3.18, 2.34, 2.0, 2.0, 4.3, 3.0, 1.45, 2.5, 3.0, 2.45, 3.27, 3.6, 2.0, 3.07, 2.31, 5.0, 2.24, 2.54, 3.06, 1.32, 5.6, 3.0, 5.0, 6.0, 2.05, 3.0, 2.5, 2.6, 5.2, 1.56, 4.34, 3.51, 3.0, 1.5, 1.76, 6.73, 3.21, 2.0, 1.98, 3.76, 2.64, 3.15, 2.47, 1.0, 2.01, 2.09, 1.97, 3.0, 3.14, 5.0, 2.2, 1.25, 3.08, 4.0, 3.0, 2.71, 3.0, 3.4, 1.83, 5.0, 2.03, 5.17, 2.0, 4.0, 5.85, 3.0, 3.0, 3.5, 1.0, 4.3, 3.25, 4.73, 4.0, 1.5, 3.0, 1.5, 2.5, 3.0, 2.5, 3.48, 4.08, 1.64, 4.06, 4.29, 3.76, 4.0, 3.0, 1.0, 4.0, 2.55, 4.0, 3.5, 5.07, 1.5, 1.8, 2.92, 2.31, 1.68, 2.5, 2.0, 2.52, 4.2, 1.48, 2.0, 2.0, 2.18, 1.5, 2.83, 1.5, 2.0, 3.25, 1.25, 2.0, 2.0, 2.0, 2.75, 3.5, 6.7, 5.0, 5.0, 2.3, 1.5, 1.36, 1.63, 1.73, 2.0, 2.5, 2.0, 2.74, 2.0, 2.0, 5.14, 5.0, 3.75, 2.61, 2.0, 3.5, 2.5, 2.0, 2.0, 3.0, 3.48, 2.24, 4.5, 1.61, 2.0, 10.0, 3.16, 5.15, 3.18, 4.0, 3.11, 2.0, 2.0, 4.0, 3.55, 3.68, 5.65, 3.5, 6.5, 3.0, 5.0, 3.5, 2.0, 3.5, 4.0, 1.5, 4.19, 2.56, 2.02, 4.0, 1.44, 2.0, 5.0, 2.0, 2.0, 4.0, 2.01, 2.0, 2.5, 4.0, 3.23, 3.41, 3.0, 2.03, 2.23, 2.0, 5.16, 9.0, 2.5, 6.5, 1.1, 3.0, 1.5, 1.44, 3.09, 2.2, 3.48, 1.92, 3.0, 1.58, 2.5, 2.0, 3.0, 2.72, 2.88, 2.0, 3.0, 3.39, 1.47, 3.0, 1.25, 1.0, 1.17, 4.67, 5.92, 2.0, 2.0, 1.75, 3.0]
time = ['Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner']
sex = ['Female', 'Male', 'Male', 'Male', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Male', 'Female', 'Male', 'Female', 'Male', 'Female', 'Male', 'Male', 'Female', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Male', 'Female', 'Female', 'Male', 'Male', 'Male', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Female', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Female', 'Male', 'Male', 'Male', 'Female', 'Female', 'Female', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Male', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Female', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Female', 'Female', 'Female', 'Female', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Female', 'Male', 'Male', 'Female', 'Female', 'Male', 'Female', 'Female', 'Female', 'Male', 'Female', 'Male', 'Male', 'Female', 'Female', 'Male', 'Female', 'Female', 'Male', 'Male', 'Female', 'Female', 'Female', 'Female', 'Female', 'Female', 'Female', 'Male', 'Female', 'Female', 'Male', 'Male', 'Female', 'Female', 'Female', 'Female', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Female', 'Female', 'Male', 'Male', 'Male', 'Female', 'Male', 'Female', 'Male', 'Male', 'Male', 'Female', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Female', 'Male', 'Male', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Female', 'Male', 'Male', 'Female', 'Female', 'Female', 'Male', 'Female', 'Male', 'Male', 'Male', 'Female', 'Male', 'Male', 'Male', 'Female', 'Female', 'Female', 'Male', 'Male', 'Male', 'Female', 'Male', 'Female', 'Male', 'Female', 'Male', 'Female', 'Female', 'Male', 'Male', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Female', 'Male', 'Male', 'Female']
day = ['Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sat', 'Sat', 'Sat', 'Sat', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Thur']
size = [2, 3, 3, 2, 4, 4, 2, 4, 2, 2, 2, 4, 2, 4, 2, 2, 3, 3, 3, 3, 2, 2, 2, 4, 2, 4, 2, 2, 2, 2, 2, 4, 2, 4, 2, 3, 3, 3, 3, 3, 3, 2, 2, 2, 4, 2, 2, 4, 3, 2, 2, 2, 4, 2, 4, 2, 4, 2, 2, 4, 2, 2, 2, 4, 3, 3, 2, 1, 2, 2, 2, 3, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 1, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 3, 2, 3, 2, 4, 2, 2, 4, 2, 2, 2, 2, 2, 6, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 6, 5, 6, 2, 2, 3, 2, 2, 2, 2, 2, 3, 4, 4, 5, 6, 4, 2, 4, 4, 2, 3, 2, 2, 3, 2, 4, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 3, 4, 2, 5, 3, 5, 3, 3, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 3, 2, 2, 2, 4, 3, 3, 4, 2, 2, 3, 4, 4, 2, 3, 2, 5, 2, 2, 4, 2, 2, 1, 3, 2, 2, 2, 4, 2, 2, 4, 3, 2, 2, 2, 2, 2, 2, 3, 3, 2, 2, 2, 2]
relplot(totalbill, tip, hue=day)
relplot(totalbill, tip, day)
relplot(totalbill, tip, hue=day, col=time)
relplot(totalbill, tip, day, col=time)
relplot(totalbill, tip, day, col=time, row=sex)
relplot(totalbill, tip, time, size=size, palette=["b", "r"], sizes=tuple([10, 100]), col=time)
relplot(totalbill, tip, sex, style=sex, col=time, kind="line")

Catplots

pulse= [85, 85, 88, 90, 92, 93, 97, 97, 94, 80, 82, 83, 91, 92, 91, 83, 83, 84, 87, 88, 90, 92, 94, 95, 97, 99, 96, 100, 97, 100, 86, 86, 84, 93, 103, 104, 90, 92, 93, 95, 96, 100, 89, 96, 95, 84, 86, 89, 103, 109, 90, 92, 96, 101, 97, 98, 100, 102, 104, 103, 93, 98, 110, 98, 104, 112, 98, 105, 99, 87, 132, 120, 94, 110, 116, 95, 126, 143, 100, 126, 140, 103, 124, 140, 94, 135, 130, 99, 111, 150]
diet = ['low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'low fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat', 'no fat']
time = ['1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min', '1 min', '15 min', '30 min']
kind = ['rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'rest', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'walking', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running', 'running']
catplot(time, pulse, kind)
catplot(time, pulse, kind, kind="violin")
catplot(time, pulse, kind, col=diet)
catplot(time, pulse, kind, col=diet, height=5, aspect=.8)
who = ['man', 'woman', 'woman', 'woman', 'man', 'man', 'man', 'child', 'woman', 'child', 'child', 'woman', 'man', 'man', 'child', 'woman', 'child', 'man', 'woman', 'woman', 'man', 'man', 'child', 'man', 'child', 'woman', 'man', 'man', 'woman', 'man', 'man', 'woman', 'woman', 'man', 'man', 'man', 'man', 'man', 'woman', 'child', 'woman', 'woman', 'man', 'child', 'woman', 'man', 'man', 'woman', 'man', 'woman', 'child', 'man', 'woman', 'woman', 'man', 'man', 'woman', 'man', 'child', 'child', 'man', 'woman', 'man', 'child', 'man', 'man', 'woman', 'man', 'woman', 'man', 'man', 'woman', 'man', 'man', 'man', 'man', 'man', 'man', 'child', 'woman', 'man', 'man', 'woman', 'man', 'woman', 'woman', 'man', 'man', 'woman', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'woman', 'man', 'woman', 'man', 'man', 'man', 'man', 'man', 'woman', 'man', 'man', 'woman', 'man', 'child', 'man', 'woman', 'woman', 'man', 'man', 'man', 'man', 'child', 'man', 'man', 'man', 'woman', 'man', 'child', 'man', 'man', 'woman', 'man', 'man', 'man', 'woman', 'woman', 'man', 'man', 'woman', 'man', 'man', 'man', 'woman', 'woman', 'woman', 'man', 'man', 'man', 'man', 'child', 'man', 'man', 'man', 'woman', 'man', 'man', 'man', 'man', 'woman', 'man', 'man', 'man', 'man', 'woman', 'man', 'man', 'child', 'child', 'woman', 'woman', 'man', 'man', 'man', 'child', 'child', 'man', 'man', 'man', 'man', 'woman', 'man', 'man', 'woman', 'man', 'child', 'child', 'child', 'man', 'woman', 'man', 'man', 'man', 'woman', 'man', 'woman', 'child', 'woman', 'woman', 'man', 'man', 'woman', 'woman', 'man', 'man', 'man', 'man', 'man', 'child', 'man', 'man', 'woman', 'man', 'man', 'woman', 'man', 'man', 'man', 'woman', 'woman', 'man', 'woman', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'woman', 'woman', 'man', 'man', 'child', 'man', 'woman', 'man', 'child', 'man', 'man', 'woman', 'woman', 'man', 'man', 'man', 'man', 'woman', 'woman', 'man', 'man', 'man', 'woman', 'man', 'man', 'woman', 'woman', 'woman', 'woman', 'woman', 'woman', 'man', 'child', 'man', 'man', 'woman', 'man', 'man', 'man', 'woman', 'woman', 'man', 'man', 'woman', 'man', 'woman', 'woman', 'woman', 'man', 'child', 'woman', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'woman', 'woman', 'woman', 'man', 'woman', 'man', 'man', 'man', 'child', 'man', 'woman', 'woman', 'man', 'man', 'woman', 'man', 'child', 'woman', 'woman', 'man', 'woman', 'woman', 'woman', 'woman', 'man', 'man', 'woman', 'woman', 'man', 'woman', 'woman', 'man', 'man', 'woman', 'woman', 'man', 'woman', 'man', 'woman', 'woman', 'woman', 'woman', 'man', 'man', 'man', 'woman', 'man', 'man', 'woman', 'man', 'man', 'child', 'woman', 'man', 'man', 'man', 'woman', 'woman', 'woman', 'child', 'man', 'man', 'man', 'child', 'man', 'man', 'man', 'woman', 'woman', 'woman', 'woman', 'man', 'man', 'woman', 'man', 'man', 'man', 'woman', 'woman', 'woman', 'woman', 'man', 'man', 'man', 'man', 'child', 'woman', 'woman', 'man', 'man', 'man', 'woman', 'child', 'man', 'woman', 'man', 'man', 'child', 'woman', 'man', 'woman', 'man', 'man', 'man', 'woman', 'woman', 'man', 'woman', 'man', 'man', 'woman', 'man', 'man', 'woman', 'man', 'woman', 'man', 'man', 'child', 'man', 'woman', 'man', 'man', 'woman', 'man', 'man', 'woman', 'woman', 'woman', 'man', 'child', 'man', 'man', 'man', 'woman', 'man', 'man', 'woman', 'woman', 'man', 'man', 'man', 'woman', 'woman', 'man', 'man', 'child', 'woman', 'woman', 'man', 'man', 'woman', 'man', 'man', 'woman', 'man', 'child', 'child', 'man', 'child', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'woman', 'woman', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'child', 'man', 'man', 'woman', 'woman', 'woman', 'man', 'man', 'man', 'man', 'child', 'child', 'man', 'man', 'woman', 'man', 'woman', 'woman', 'man', 'man', 'child', 'man', 'man', 'man', 'man', 'man', 'man', 'woman', 'man', 'woman', 'man', 'man', 'woman', 'woman', 'woman', 'woman', 'man', 'woman', 'man', 'man', 'man', 'man', 'man', 'man', 'woman', 'man', 'man', 'woman', 'man', 'woman', 'man', 'woman', 'man', 'man', 'woman', 'man', 'man', 'woman', 'man', 'man', 'man', 'child', 'man', 'man', 'woman', 'woman', 'child', 'man', 'woman', 'man', 'woman', 'woman', 'child', 'child', 'man', 'man', 'man', 'woman', 'man', 'man', 'child', 'man', 'man', 'man', 'man', 'woman', 'man', 'woman', 'man', 'woman', 'woman', 'man', 'man', 'man', 'man', 'woman', 'man', 'man', 'woman', 'man', 'man', 'man', 'woman', 'man', 'woman', 'man', 'man', 'woman', 'woman', 'woman', 'man', 'woman', 'woman', 'man', 'man', 'man', 'woman', 'man', 'man', 'man', 'man', 'man', 'woman', 'man', 'woman', 'man', 'man', 'woman', 'man', 'man', 'man', 'woman', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'woman', 'woman', 'woman', 'man', 'woman', 'man', 'man', 'woman', 'man', 'woman', 'child', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'woman', 'man', 'man', 'man', 'man', 'man', 'man', 'child', 'woman', 'man', 'man', 'woman', 'man', 'man', 'woman', 'child', 'man', 'child', 'man', 'man', 'man', 'man', 'woman', 'man', 'woman', 'man', 'woman', 'woman', 'man', 'man', 'woman', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'man', 'woman', 'woman', 'man', 'man', 'man', 'man', 'man', 'man', 'woman', 'woman', 'man', 'woman', 'man', 'man', 'child', 'man', 'man', 'child', 'man', 'man', 'child', 'man', 'child', 'man', 'man', 'man', 'man', 'man', 'woman', 'man', 'man', 'woman', 'man', 'woman', 'man', 'man', 'man', 'woman', 'man', 'woman', 'man', 'woman', 'man', 'man', 'man', 'man', 'man', 'woman', 'woman', 'man', 'man', 'child', 'man', 'man', 'man', 'man', 'man', 'woman', 'woman', 'man', 'woman', 'woman', 'child', 'man', 'man', 'man', 'man', 'woman', 'man', 'man', 'man', 'man', 'man', 'woman', 'man', 'man', 'man', 'man', 'woman', 'man', 'man', 'child', 'child', 'man', 'man', 'woman', 'child', 'man', 'man', 'man', 'woman', 'man', 'man', 'man', 'woman', 'man', 'woman', 'man', 'woman', 'man', 'man', 'man', 'man', 'woman', 'man', 'woman', 'man', 'man', 'child', 'man', 'woman', 'child', 'woman', 'man', 'man', 'man', 'man', 'woman', 'child', 'child', 'man', 'man', 'man', 'woman', 'man', 'man', 'man', 'woman', 'woman', 'man', 'woman', 'man', 'woman', 'child', 'child', 'man', 'man', 'man', 'woman', 'man', 'woman', 'man', 'man', 'man', 'child', 'man', 'man', 'woman', 'man', 'man', 'child', 'woman', 'man', 'man', 'woman', 'child', 'man', 'man', 'child', 'man', 'woman', 'child', 'child', 'man', 'man', 'man', 'woman', 'man', 'man', 'man', 'man', 'man', 'man', 'woman', 'man', 'man', 'man', 'man', 'man', 'man', 'woman', 'child', 'man', 'child', 'woman', 'woman', 'woman', 'woman', 'man', 'woman', 'man', 'man', 'man', 'woman', 'woman', 'man', 'woman', 'woman', 'man', 'man', 'child', 'man', 'woman', 'man', 'man', 'woman', 'child', 'man', 'man', 'man', 'woman', 'woman', 'man', 'woman', 'man', 'man', 'woman', 'man', 'woman', 'woman', 'man', 'man']
survived = [0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0]
seatclass = ['Third', 'First', 'Third', 'First', 'Third', 'Third', 'First', 'Third', 'Third', 'Second', 'Third', 'First', 'Third', 'Third', 'Third', 'Second', 'Third', 'Second', 'Third', 'Third', 'Second', 'Second', 'Third', 'First', 'Third', 'Third', 'Third', 'First', 'Third', 'Third', 'First', 'First', 'Third', 'Second', 'First', 'First', 'Third', 'Third', 'Third', 'Third', 'Third', 'Second', 'Third', 'Second', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'First', 'Second', 'First', 'First', 'Second', 'Third', 'Second', 'Third', 'Third', 'First', 'First', 'Third', 'First', 'Third', 'Second', 'Third', 'Third', 'Third', 'Second', 'Third', 'Second', 'Third', 'Third', 'Third', 'Third', 'Third', 'Second', 'Third', 'Third', 'Third', 'Third', 'First', 'Second', 'Third', 'Third', 'Third', 'First', 'Third', 'Third', 'Third', 'First', 'Third', 'Third', 'Third', 'First', 'First', 'Second', 'Second', 'Third', 'Third', 'First', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'First', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'Second', 'First', 'Third', 'Second', 'Third', 'Second', 'Second', 'First', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'Second', 'Second', 'Second', 'First', 'First', 'Third', 'First', 'Third', 'Third', 'Third', 'Third', 'Second', 'Second', 'Third', 'Third', 'Second', 'Second', 'Second', 'First', 'Third', 'Third', 'Third', 'First', 'Third', 'Third', 'Third', 'Third', 'Third', 'Second', 'Third', 'Third', 'Third', 'Third', 'First', 'Third', 'First', 'Third', 'First', 'Third', 'Third', 'Third', 'First', 'Third', 'Third', 'First', 'Second', 'Third', 'Third', 'Second', 'Third', 'Second', 'Third', 'First', 'Third', 'First', 'Third', 'Third', 'Second', 'Second', 'Third', 'Second', 'First', 'First', 'Third', 'Third', 'Third', 'Second', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'First', 'Third', 'Second', 'Third', 'Second', 'Third', 'First', 'Third', 'Second', 'First', 'Second', 'Third', 'Second', 'Third', 'Third', 'First', 'Third', 'Second', 'Third', 'Second', 'Third', 'First', 'Third', 'Second', 'Third', 'Second', 'Third', 'Second', 'Second', 'Second', 'Second', 'Third', 'Third', 'Second', 'Third', 'Third', 'First', 'Third', 'Second', 'First', 'Second', 'Third', 'Third', 'First', 'Third', 'Third', 'Third', 'First', 'First', 'First', 'Second', 'Third', 'Third', 'First', 'First', 'Third', 'Second', 'Third', 'Third', 'First', 'First', 'First', 'Third', 'Second', 'First', 'Third', 'First', 'Third', 'Second', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'First', 'Third', 'Third', 'Third', 'Second', 'Third', 'First', 'First', 'Second', 'Third', 'Third', 'First', 'Third', 'First', 'First', 'First', 'Third', 'Third', 'Third', 'Second', 'Third', 'First', 'First', 'First', 'Second', 'First', 'First', 'First', 'Second', 'Third', 'Second', 'Third', 'Second', 'Second', 'First', 'First', 'Third', 'Third', 'Second', 'Second', 'Third', 'First', 'Third', 'Second', 'Third', 'First', 'Third', 'First', 'First', 'Third', 'First', 'Third', 'First', 'First', 'Third', 'First', 'Second', 'First', 'Second', 'Second', 'Second', 'Second', 'Second', 'Third', 'Third', 'Third', 'Third', 'First', 'Third', 'Third', 'Third', 'Third', 'First', 'Second', 'Third', 'Third', 'Third', 'Second', 'Third', 'Third', 'Third', 'Third', 'First', 'Third', 'Third', 'First', 'First', 'Third', 'Third', 'First', 'Third', 'First', 'Third', 'First', 'Third', 'Third', 'First', 'Third', 'Third', 'First', 'Third', 'Second', 'Third', 'Second', 'Third', 'Second', 'First', 'Third', 'Third', 'First', 'Third', 'Third', 'Third', 'Second', 'Second', 'Second', 'Third', 'Third', 'Third', 'Third', 'Third', 'Second', 'Third', 'Second', 'Third', 'Third', 'Third', 'Third', 'First', 'Second', 'Third', 'Third', 'Second', 'Second', 'Second', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'Second', 'Second', 'Third', 'Third', 'First', 'Third', 'Second', 'Third', 'First', 'First', 'Third', 'Second', 'First', 'Second', 'Second', 'Third', 'Third', 'Second', 'Third', 'First', 'Second', 'First', 'Third', 'First', 'Second', 'Third', 'First', 'First', 'Third', 'Third', 'First', 'First', 'Second', 'Third', 'First', 'Third', 'First', 'Second', 'Third', 'Third', 'Second', 'First', 'Third', 'Third', 'Third', 'Third', 'Second', 'Second', 'Third', 'First', 'Second', 'Third', 'Third', 'Third', 'Third', 'Second', 'Third', 'Third', 'First', 'Third', 'First', 'First', 'Third', 'Third', 'Third', 'Third', 'First', 'First', 'Third', 'Third', 'First', 'Third', 'First', 'Third', 'Third', 'Third', 'Third', 'Third', 'First', 'First', 'Second', 'First', 'Third', 'Third', 'Third', 'Third', 'First', 'First', 'Third', 'First', 'Second', 'Third', 'Second', 'Third', 'First', 'Third', 'Third', 'First', 'Third', 'Third', 'Second', 'First', 'Third', 'Second', 'Second', 'Third', 'Third', 'Third', 'Third', 'Second', 'First', 'First', 'Third', 'First', 'First', 'Third', 'Third', 'Second', 'First', 'First', 'Second', 'Second', 'Third', 'Second', 'First', 'Second', 'Third', 'Third', 'Third', 'First', 'First', 'First', 'First', 'Third', 'Third', 'Third', 'Second', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'Second', 'First', 'First', 'Third', 'Third', 'Third', 'Second', 'First', 'Third', 'Third', 'Second', 'First', 'Second', 'First', 'Third', 'First', 'Second', 'First', 'Third', 'Third', 'Third', 'First', 'Third', 'Third', 'Second', 'Third', 'Second', 'Third', 'Third', 'First', 'Second', 'Third', 'First', 'Third', 'First', 'Third', 'Third', 'First', 'Second', 'First', 'Third', 'Third', 'Third', 'Third', 'Third', 'Second', 'Third', 'Third', 'Second', 'Second', 'Third', 'First', 'Third', 'Third', 'Third', 'First', 'Second', 'First', 'Third', 'Third', 'First', 'Third', 'First', 'First', 'Third', 'Second', 'Third', 'Second', 'Third', 'Third', 'Third', 'First', 'Third', 'Third', 'Third', 'First', 'Third', 'First', 'Third', 'Third', 'Third', 'Second', 'Third', 'Third', 'Third', 'Second', 'Third', 'Third', 'Second', 'First', 'First', 'Third', 'First', 'Third', 'Third', 'Second', 'Second', 'Third', 'Third', 'First', 'Second', 'First', 'Second', 'Second', 'Second', 'Third', 'Third', 'Third', 'Third', 'First', 'Third', 'First', 'Third', 'Third', 'Second', 'Second', 'Third', 'Third', 'Third', 'First', 'First', 'Third', 'Third', 'Third', 'First', 'Second', 'Third', 'Third', 'First', 'Third', 'First', 'First', 'Third', 'Third', 'Third', 'Second', 'Second', 'First', 'First', 'Third', 'First', 'First', 'First', 'Third', 'Second', 'Third', 'First', 'Second', 'Third', 'Third', 'Second', 'Third', 'Second', 'Second', 'First', 'Third', 'Second', 'Third', 'Second', 'Third', 'First', 'Third', 'Second', 'Second', 'Second', 'Third', 'Third', 'First', 'Third', 'Third', 'First', 'First', 'First', 'Third', 'Third', 'First', 'Third', 'Second', 'First', 'Third', 'Second', 'Third', 'Third', 'Third', 'Second', 'Second', 'Third', 'Second', 'Third', 'First', 'Third', 'Third', 'Third', 'First', 'Third', 'First', 'First', 'Third', 'Third', 'Third', 'Third', 'Third', 'Second', 'Third', 'Second', 'Third', 'Third', 'Third', 'Third', 'First', 'Third', 'First', 'First', 'Third', 'Third', 'Third', 'Third', 'Third', 'Third', 'First', 'Third', 'Second', 'Third', 'First', 'Third', 'Second', 'First', 'Third', 'Third', 'Third', 'Second', 'Second', 'First', 'Third', 'Third', 'Third', 'First', 'Third', 'Second', 'First', 'Third', 'Third', 'Second', 'Third', 'Third', 'First', 'Third', 'Second', 'Third', 'Third', 'First', 'Third', 'First', 'Third', 'Third', 'Third', 'Third', 'Second', 'Third', 'First', 'Third', 'Second', 'Third', 'Third', 'Third', 'First', 'Third', 'Third', 'Third', 'First', 'Third', 'Second', 'First', 'Third', 'Third', 'Third', 'Third', 'Third', 'Second', 'First', 'Third', 'Third', 'Third', 'First', 'Second', 'Third', 'First', 'First', 'Third', 'Third', 'Third', 'Second', 'First', 'Third', 'Second', 'Second', 'Second', 'First', 'Third', 'Third', 'Third', 'First', 'First', 'Third', 'Second', 'Third', 'Third', 'Third', 'Third', 'First', 'Second', 'Third', 'Third', 'Second', 'Third', 'Third', 'Second', 'First', 'Third', 'First', 'Third']
catplot(who, survived, col=seatclass,  saturation=.5, kind="bar", aspect=.6)
catplot(survived, col=seatclass, kind="count", height=2.5, aspect=.8)

Other Plots

totalbill = [16.99, 10.34, 21.01, 23.68, 24.59, 25.29, 8.77, 26.88, 15.04, 14.78, 10.27, 35.26, 15.42, 18.43, 14.83, 21.58, 10.33, 16.29, 16.97, 20.65, 17.92, 20.29, 15.77, 39.42, 19.82, 17.81, 13.37, 12.69, 21.7, 19.65, 9.55, 18.35, 15.06, 20.69, 17.78, 24.06, 16.31, 16.93, 18.69, 31.27, 16.04, 17.46, 13.94, 9.68, 30.4, 18.29, 22.23, 32.4, 28.55, 18.04, 12.54, 10.29, 34.81, 9.94, 25.56, 19.49, 38.01, 26.41, 11.24, 48.27, 20.29, 13.81, 11.02, 18.29, 17.59, 20.08, 16.45, 3.07, 20.23, 15.01, 12.02, 17.07, 26.86, 25.28, 14.73, 10.51, 17.92, 27.2, 22.76, 17.29, 19.44, 16.66, 10.07, 32.68, 15.98, 34.83, 13.03, 18.28, 24.71, 21.16, 28.97, 22.49, 5.75, 16.32, 22.75, 40.17, 27.28, 12.03, 21.01, 12.46, 11.35, 15.38, 44.3, 22.42, 20.92, 15.36, 20.49, 25.21, 18.24, 14.31, 14.0, 7.25, 38.07, 23.95, 25.71, 17.31, 29.93, 10.65, 12.43, 24.08, 11.69, 13.42, 14.26, 15.95, 12.48, 29.8, 8.52, 14.52, 11.38, 22.82, 19.08, 20.27, 11.17, 12.26, 18.26, 8.51, 10.33, 14.15, 16.0, 13.16, 17.47, 34.3, 41.19, 27.05, 16.43, 8.35, 18.64, 11.87, 9.78, 7.51, 14.07, 13.13, 17.26, 24.55, 19.77, 29.85, 48.17, 25.0, 13.39, 16.49, 21.5, 12.66, 16.21, 13.81, 17.51, 24.52, 20.76, 31.71, 10.59, 10.63, 50.81, 15.81, 7.25, 31.85, 16.82, 32.9, 17.89, 14.48, 9.6, 34.63, 34.65, 23.33, 45.35, 23.17, 40.55, 20.69, 20.9, 30.46, 18.15, 23.1, 15.69, 19.81, 28.44, 15.48, 16.58, 7.56, 10.34, 43.11, 13.0, 13.51, 18.71, 12.74, 13.0, 16.4, 20.53, 16.47, 26.59, 38.73, 24.27, 12.76, 30.06, 25.89, 48.33, 13.27, 28.17, 12.9, 28.15, 11.59, 7.74, 30.14, 12.16, 13.42, 8.58, 15.98, 13.42, 16.27, 10.09, 20.45, 13.28, 22.12, 24.01, 15.69, 11.61, 10.77, 15.53, 10.07, 12.6, 32.83, 35.83, 29.03, 27.18, 22.67, 17.82, 18.78] tip = [1.01, 1.66, 3.5, 3.31, 3.61, 4.71, 2.0, 3.12, 1.96, 3.23, 1.71, 5.0, 1.57, 3.0, 3.02, 3.92, 1.67, 3.71, 3.5, 3.35, 4.08, 2.75, 2.23, 7.58, 3.18, 2.34, 2.0, 2.0, 4.3, 3.0, 1.45, 2.5, 3.0, 2.45, 3.27, 3.6, 2.0, 3.07, 2.31, 5.0, 2.24, 2.54, 3.06, 1.32, 5.6, 3.0, 5.0, 6.0, 2.05, 3.0, 2.5, 2.6, 5.2, 1.56, 4.34, 3.51, 3.0, 1.5, 1.76, 6.73, 3.21, 2.0, 1.98, 3.76, 2.64, 3.15, 2.47, 1.0, 2.01, 2.09, 1.97, 3.0, 3.14, 5.0, 2.2, 1.25, 3.08, 4.0, 3.0, 2.71, 3.0, 3.4, 1.83, 5.0, 2.03, 5.17, 2.0, 4.0, 5.85, 3.0, 3.0, 3.5, 1.0, 4.3, 3.25, 4.73, 4.0, 1.5, 3.0, 1.5, 2.5, 3.0, 2.5, 3.48, 4.08, 1.64, 4.06, 4.29, 3.76, 4.0, 3.0, 1.0, 4.0, 2.55, 4.0, 3.5, 5.07, 1.5, 1.8, 2.92, 2.31, 1.68, 2.5, 2.0, 2.52, 4.2, 1.48, 2.0, 2.0, 2.18, 1.5, 2.83, 1.5, 2.0, 3.25, 1.25, 2.0, 2.0, 2.0, 2.75, 3.5, 6.7, 5.0, 5.0, 2.3, 1.5, 1.36, 1.63, 1.73, 2.0, 2.5, 2.0, 2.74, 2.0, 2.0, 5.14, 5.0, 3.75, 2.61, 2.0, 3.5, 2.5, 2.0, 2.0, 3.0, 3.48, 2.24, 4.5, 1.61, 2.0, 10.0, 3.16, 5.15, 3.18, 4.0, 3.11, 2.0, 2.0, 4.0, 3.55, 3.68, 5.65, 3.5, 6.5, 3.0, 5.0, 3.5, 2.0, 3.5, 4.0, 1.5, 4.19, 2.56, 2.02, 4.0, 1.44, 2.0, 5.0, 2.0, 2.0, 4.0, 2.01, 2.0, 2.5, 4.0, 3.23, 3.41, 3.0, 2.03, 2.23, 2.0, 5.16, 9.0, 2.5, 6.5, 1.1, 3.0, 1.5, 1.44, 3.09, 2.2, 3.48, 1.92, 3.0, 1.58, 2.5, 2.0, 3.0, 2.72, 2.88, 2.0, 3.0, 3.39, 1.47, 3.0, 1.25, 1.0, 1.17, 4.67, 5.92, 2.0, 2.0, 1.75, 3.0]
time = ['Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Lunch', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner', 'Dinner']
sex = ['Female', 'Male', 'Male', 'Male', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Male', 'Female', 'Male', 'Female', 'Male', 'Female', 'Male', 'Male', 'Female', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Male', 'Female', 'Female', 'Male', 'Male', 'Male', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Female', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Female', 'Male', 'Male', 'Male', 'Female', 'Female', 'Female', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Male', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Female', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Female', 'Female', 'Female', 'Female', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Female', 'Male', 'Male', 'Female', 'Female', 'Male', 'Female', 'Female', 'Female', 'Male', 'Female', 'Male', 'Male', 'Female', 'Female', 'Male', 'Female', 'Female', 'Male', 'Male', 'Female', 'Female', 'Female', 'Female', 'Female', 'Female', 'Female', 'Male', 'Female', 'Female', 'Male', 'Male', 'Female', 'Female', 'Female', 'Female', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Female', 'Female', 'Male', 'Male', 'Male', 'Female', 'Male', 'Female', 'Male', 'Male', 'Male', 'Female', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Female', 'Male', 'Male', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Female', 'Male', 'Male', 'Female', 'Female', 'Female', 'Male', 'Female', 'Male', 'Male', 'Male', 'Female', 'Male', 'Male', 'Male', 'Female', 'Female', 'Female', 'Male', 'Male', 'Male', 'Female', 'Male', 'Female', 'Male', 'Female', 'Male', 'Female', 'Female', 'Male', 'Male', 'Female', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Female', 'Male', 'Male', 'Female']
day = ['Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sat', 'Sat', 'Sat', 'Sat', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Sun', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Thur', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Fri', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Sat', 'Thur']
size = [2, 3, 3, 2, 4, 4, 2, 4, 2, 2, 2, 4, 2, 4, 2, 2, 3, 3, 3, 3, 2, 2, 2, 4, 2, 4, 2, 2, 2, 2, 2, 4, 2, 4, 2, 3, 3, 3, 3, 3, 3, 2, 2, 2, 4, 2, 2, 4, 3, 2, 2, 2, 4, 2, 4, 2, 4, 2, 2, 4, 2, 2, 2, 4, 3, 3, 2, 1, 2, 2, 2, 3, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 1, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 3, 2, 3, 2, 4, 2, 2, 4, 2, 2, 2, 2, 2, 6, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 6, 5, 6, 2, 2, 3, 2, 2, 2, 2, 2, 3, 4, 4, 5, 6, 4, 2, 4, 4, 2, 3, 2, 2, 3, 2, 4, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 3, 4, 2, 5, 3, 5, 3, 3, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 3, 2, 2, 2, 4, 3, 3, 4, 2, 2, 3, 4, 4, 2, 3, 2, 5, 2, 2, 4, 2, 2, 1, 3, 2, 2, 2, 4, 2, 2, 4, 3, 2, 2, 2, 2, 2, 2, 3, 3, 2, 2, 2, 2]
smoker = ['No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', 'Yes', 'Yes', 'Yes', 'No', 'No', 'No', 'Yes', 'No', 'Yes', 'No', 'No', 'Yes', 'Yes', 'No', 'No', 'Yes', 'No', 'No', 'No', 'Yes', 'No', 'No', 'Yes', 'No', 'No', 'No', 'No', 'No', 'No', 'Yes', 'No', 'Yes', 'Yes', 'No', 'Yes', 'Yes', 'Yes', 'Yes', 'No', 'Yes', 'Yes', 'Yes', 'Yes', 'No', 'Yes', 'Yes', 'Yes', 'No', 'Yes', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'Yes', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'Yes', 'No', 'No', 'No', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'No', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'No', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'No', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'No', 'Yes', 'Yes', 'Yes', 'No', 'No', 'Yes', 'Yes', 'Yes', 'No', 'No', 'Yes', 'No', 'Yes', 'Yes', 'No', 'No', 'Yes', 'Yes', 'No', 'No']
jointplot(totalbill, tip)
jointplot(totalbill, tip, kind="hex")
lmplot(totalbill, tip, hue=smoker)
lmplot(totalbill, tip, smoker)
regplot(size, totalbill, ci=68)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s