Skip to content

Banyc/dfplot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dfplot

Summarize a data frame by plotting.

Plots for numeral data

Scatter plot

g,x,y
a,1,1
a,2,2
a,3,4
a,4,8
b,1,1
b,2,2
b,3,3
b,4,4
dfplot scatter data.csv --group g -x x -y y

Histogram

x
1
2
2
3
3
3
4
4
4
4
dfplot histogram data.csv -x x

Box plot

y
1
2
2
3
3
3
4
4
4
4
dfplot box data.csv -y y

Plots for categorical data

Bar plot

app_type,homeownership,count
individual,rent,3496
individual,mortgage,3839
individual,own,1170
joint,rent,362
joint,mortgage,950
joint,own,1170
# barmode = `group`
dfplot bar data.csv --group app_type -x homeownership -y count
# barmode = `proportion`
dfplot bar data.csv --group app_type -x homeownership -y count --barmode proportion