marginal of the Q-Q Plot¶import pandas as pd
from lets_plot import *
from lets_plot.bistro.qq import *
LetsPlot.setup_html()
df = pd.read_csv("https://raw.githubusercontent.com/JetBrains/lets-plot-docs/master/data/mpg.csv")
print(df.shape)
df.head()
gggrid([
qq_plot(df, sample="hwy") + ggtitle("Q-Q Plot"),
qq_plot(df, x="cty", y="hwy") + ggtitle("Q-Q-2 Plot"),
])
marginal¶gggrid([
qq_plot(df, sample="hwy", distribution='exp', marginal=marginal) + ggtitle("marginal='{0}'".format(marginal))
for marginal in ["none", "hist:tr", "dens:tr,hist:bl", "box : tr : .05, dens : bl"]
], ncol=2)