Questions tagged [facet-grid]

Facet grid is a presentation form which includes panels defined by facetting variables. Facet grid is allowed to show all existed combinations of the concerned variables to reveal relationships between them.

Facet grid is a presentation form which includes panels defined by facetting variables. Facet grid is allowed to show all existed combinations of the concerned variables to reveal relationships between them.

Some graph packages have facet grid plotting tools:

: ggplot2 facet_grid examples

: seaborn FacetGrid examples

642 questions
-1
votes
1 answer

how to facet multiple data sets with different number of rows

I am trying to plot three data sets that share an x axis. some of the data sets, however, have missing data and are thus of different length. I can plot them fine individually but when I try to facet them all together I get an error that the data…
Greg T.D.
  • 49
  • 5
-1
votes
1 answer

Remove space at bottom of facet

I'm working on a chart with #ggplot and facet but I'm not getting to the result I wish for. With the code shown below I always get some space between labels and bars Even adding switch="y" I can move the facet titles on the left but the space is…
Bruno T
  • 13
  • 4
-1
votes
1 answer

Combining two types of labellers in facet_grid

I have the follow facet_grid + ggplot2 code: ggplot(output,aes(x=as.factor(X_and_Color),y=Y_values,fill=as.factor(X_and_Color)))+ geom_bar(stat="identity",position='dodge')+ theme(axis.title.x=element_blank(), …
AMB
  • 129
  • 8
-1
votes
2 answers

Grids are not getting displayed in my JUPYTER notebook

Using the facetgrid , the grids are not getting displayed . just the histogram is displayed .
ReNinja
  • 543
  • 2
  • 10
  • 27
-1
votes
1 answer

Fixing the order of facets in ggplot when using dplyr to transform data to long form

I got help here yesterday to create a facet grid of multiple columns. This yielded a large grid containing 8*5 plots. The code creates a combination of plot for various Outcomes * Responses. For example (Outcome1 * Response1, Outcome1 * Response2,…
DiscoR
  • 247
  • 2
  • 11
-2
votes
1 answer

Dividing ggplot in different 2 ggplot

I have this ggplot :plot1 I've obtained this plot using this code : g<- ggplot(base__, aes(x=Race_name, y=ec_prem, color=nouv_grp))+scale_color_brewer(palette = "Paired")+ geom_jitter(position=position_jitter(0.2))+xlab("Course")+ylab("Ecart /…
chlooo
  • 11
  • 2
-2
votes
1 answer

No Numeric Type To Aggregate

I have a dataframe in which there is the following columns: Date - Seller - Amount Code sample: import pandas as pd import seaborn as sns import matplotlib.pyplot as plt %matplotlib inline testframe = pd.DataFrame({'date': ['01/02/2019',…
Lucas Abreu
  • 425
  • 3
  • 14
-2
votes
1 answer

How to debug the R error " must be either length 1 or the same as the data"?

I have this data: # R> smokeyes_male LungCap.cc. Age..years. Height.inches. Smoke Gender Caesarean 211 6.575 10 63.2 yes male yes 220 7.000 10 62.8 yes male yes 252 …
-2
votes
1 answer

Seaborn FacetGrid keyerror

My pandas dataframe looks like this hours Record Result 04 1 Pass 12 2 Fail 04 3 Good 15 4 Warning I have 500 rows in my dataframe.I want to plot hours on x axis with the number of records on y axis faceted by…
Jayashree
  • 811
  • 3
  • 13
  • 28
-2
votes
2 answers

I followed examples and I can't get facet_grid to work to split my data

I am trying to represent my data as box plots and my data frame currently looks as follows: V1 V2 V3 V4 V5 1 1 12.18 FEMALE A_ambiguus Host 2 2 11.81 FEMALE A_ambiguus Host 3 3 10.70 MALE A_ambiguus Host 4 4…
-5
votes
1 answer

Using ggplot2 to draw bar plot

I hope to make graph like this: image from a journal My data is like: temp<-data.frame(agecat=c("40-49","40-49","50-59","50-59","60+","60+"), ANY=c("NO","YES","NO","YES","NO","YES"), …
1 2 3
42
43