I want to plot several diagrams as a FacetGrid, each one including two times points. In addition I want to calculate and display the slope of the line:
ID TimePoint1 TimePoint2
================================
A 500 20000
B 200 1000
C 3000 50000
I tried this code example but nothing shows up in the plots:
import seaborn as sns
import pandas as pd
import matplotlib.pyplot as plt
data = pd.read_table("test.csv", sep=",")
g = sns.FacetGrid(data, col="ID", col_wrap=4, height=2, ylim=(0, 10))
g.map(sns.pointplot, "TimePoint1", "TimePoint2", color=".3", ci=None)
How can I achieve this with seaborn?