Questions tagged [jointplot]

For plotting a jointplot in python or r, using seaborn or ggExtra

Joint Plots are used to explore relationships between bivariate data, as well as their distributions at the same time. Typically, a joint plot consists of a central plot with s at the top and right edges. The scatter plot shows data from both variables, while each histogram describes a single variable.

In the plotting library has a sns.jointplot function.
In the library ggExtra provides a function ggMarginal for extending ggplot2 scatterplots.

51 questions
2
votes
1 answer

returning array of values in hexbin using seaborn jointplot

I have a dataset that is tracking some position over time and some values that depend upon position, so I would like to use the seaborn plot to show this data. The plot looks like this: And here is the code to make it. I can't share the dataset to…
2
votes
1 answer

How to make a jointplot in Seaborn with multiple groups or categories?

I am trying to make a jointplot in Seaborn. The goal is to have a scatter plot of all [x,z] values and to have these color-coded by [cat], and to have the distributions for these two categories. Then I also want a scatter and distribution plot of…
a11
  • 3,122
  • 4
  • 27
  • 66
2
votes
1 answer

How to change the colorbar ticklabels to percent

I have a problem with the colorbar of my kdeplot. It should show the percentage in each bin starting with 0%. I tried two different ways, but both visualizations are not exactly what I need. The version with JointGrid starts indeed with 0%, but…
Mel
  • 81
  • 2
  • 4
2
votes
1 answer

Seaborn jointplot joint density level / color scale adjustment

I can show you better than I can explain: I use seaborn to draw a jointplot of two time series, but I would like to change the scale of the density so that more of the joint distributions would be visible. This is what comes out with: g =…
Crebit
  • 367
  • 1
  • 4
  • 14
1
vote
2 answers

How to remove a JointGrid margin frame

import pandas as pd import seaborn as sns import matplotlib.pyplot as plt # sample data penguins = sns.load_dataset('penguins') g = sns.JointGrid(data=penguins, x='bill_length_mm', y='bill_depth_mm', space=0)…
ai-py
  • 177
  • 1
  • 7
1
vote
1 answer

Adding mean and std to jointplot margins

I have a seaborn.jointplot very similar to the figure I've attached (from the seaborn gallery). However, I wonder if it is possible to add e.g. a colored line to each of the marginal plots to mark the mean and a range marking for the interval of one…
rbn
  • 13
  • 4
1
vote
1 answer

seaborn jointplot margins not working with logarithmic axes

I'm trying to plot via: g = sns.jointplot(x = etas, y = vs, marginal_kws=dict(bins=100), space =…
1
vote
1 answer

seaborn joint plot, how to remove space between marginal axes

I'm trying to plot a seaborn joint plot, but the axis lines are not connected. How can I connect the marginal axes back to the main plot? sns_plot = sns.jointplot(x = 'f48', y= x,data=df, kind ='kde', cmap…
justice V
  • 15
  • 5
1
vote
2 answers

Joint plot with regression line and classes by hue

I have the following dataframe df = pd.DataFrame({ 'Product': ['AA', 'AA', 'BB', 'BB', 'AA', 'AA', 'BB', 'BB'], 'Sales': [ 200, 100, 400, 100, 300, 100, 200, 500], 'Price': [ 5, 3, 3, 6, 4, 7, 4, 1]}) I would like to plot the…
postcolonialist
  • 449
  • 7
  • 17
1
vote
1 answer

Existing Seaborn jointplot add to scatter plot part only

Is there a way to create a Seaborn Jointplot and then add additional data to the scatter plot part, but not the distributions? Example below creates df and Jointplot on df. Then I would like to add df2 onto the scatter plot only, and still have it…
a11
  • 3,122
  • 4
  • 27
  • 66
1
vote
0 answers

Parameters in seaborn.jointplot()

I am going through seaborn.jointplot() documentation (link) and it says that this function has these parameters: seaborn.jointplot(*, x=None, y=None, data=None, kind='scatter', color=None, height=6, ratio=5, space=0.2, dropna=False, xlim=None,…
1
vote
1 answer

Set edgecolor on seaborn jointplot

I am able to set edgecolors for a seaborn histogram by passing in a hist_kws argument: sns.distplot(ad_data["Age"], kde = False, bins = 35, hist_kws = {"ec":"black"}) However, I'm unable to similarly set edgecolors for the histograms in a seaborn…
1
vote
1 answer

How to add a colorbar to kdeplot and jointplot

When generating bivariate plots like hexbin, pandas generates a legend explaining frequency value for each color shade: pokemon.plot.hexbin(x='HP', y='Attack', gridsize=30) I cannot find a similar way to generate such a legend for jointplot and…
dzieciou
  • 4,049
  • 8
  • 41
  • 85
0
votes
1 answer

Remove Bins from Marginal histplot in Jointplot

I am trying to remove the superposed line of the bins (derived from the hisplot part of the jointplot function) in the lateral plot here in this figure (in white): column1 = "F" array1 = np.random.randn(400) column2 = "R" array2 =…
ChYoung
  • 3
  • 3
0
votes
0 answers

How to make colorbars (not coordinate axes) follow logscale in jointplot

I plot m1 and m2 with seaborn.jointplot as below. The color bars marked with a red circle representing probability density in contour region are linear scale, but I want to make them follow logscale, how to make it? sns.jointplot(data =…
Shuai Liu
  • 1
  • 1