Questions tagged [stacked-chart]

For questions about stacked charts, i.e. charts where multiple data series are superimposed.

Stacked are charts in which you collect multiple data series and display their cumulative values. These can be stacked histograms, stacked areas, or a number of other arrangements.

Stacked areas Stacked areas adding up to 100% 3d example Stacked area chart

Typical questions involve how to get this sort of layout from various plotting engines and how to affect details like legends, orientation, color palette, grouping, etc.

674 questions
0
votes
2 answers

Sum columns of array subject to mask

I have a df[n,f] eg,n rows x 35 features. The sum of all the features across each row is = 1.0. I am attempting to create a stacked bar chart by grouping all features which are not above a certain minimum average into a category "All Others." I…
GPB
  • 2,395
  • 8
  • 26
  • 36
0
votes
1 answer

Cluster stacked bargraph

I want to plot something like this in R. I found some similar solution here so I tried something similar: test <- data.frame(person=c("group 1", "group 2", "group 3"), value1=c(100,150,120), # male …
chepukha
  • 2,371
  • 3
  • 28
  • 40
0
votes
1 answer

R stacked bar plot without increment the values in the bars

I am starting with R, and trying to draw a stacked bar plot, my data is this: Groups AxisX AxisY 1 B 1 35476 2 B 2 31394 3 B 3 39305 4 B 4 33845 5 B 5 30295 6 B 6 25590 7 B 7…
0
votes
2 answers

How to create an Excel stacked bar chart with two bars, each drawing from different sources?

Is it possible to create a stacked bar chart in Excel with two stacked bars, each drawing from separate data, but scaling data the same way? For example, say I want to show the following revenue from a school in the first bar: Tuition - $4,000,000…
Terry Thompson
  • 489
  • 2
  • 15
0
votes
2 answers

How to graph top most important categories among 25 with stacked bar chart

My problem is a bit more complicated than the one this question. I wanted to stack 10 most abundant species per each Rot.Herb (18 of them in total) and group other species to two big categories, which are Other Monocots and Other Dicots. I think I…
Little Bee
  • 1,175
  • 2
  • 13
  • 22
0
votes
1 answer

D3 grouped stacked bar chart column summation

I have a grouped stacked bar chart as looks in this image,http://pasteboard.co/1BKMicBq.jpg I want to add up the sum of the respective bars as in image. I have a dataset which has summed values ready for displaying, which looks like, var months= [ {…
0
votes
0 answers

How to create navigator series for Highstock stacked column chart

I have a stacked column chart. In this chart the navigator is blank and it doesnt show the proper line. I want create the series for stacked column chart. What should be the structure of the series?
kumaresan
  • 83
  • 1
  • 10
0
votes
3 answers

r stacked bargraph with colors representing values

I'm looking to make a stacked barchart with colors representing values from a separate data column as well as add an accurate color bar using just the base graphics in R. There is one other post about this but it is pretty disorganized and in the…
James
  • 699
  • 8
  • 13
0
votes
1 answer

Stacked bar plot in R with ratio line overplot

I have data with one observation per row: rm(list = ls(all = TRUE)) mydf <- data.frame(kind = sample(c("good", "bad"), 100, replace = TRUE), var1 = sample(c("yes", "no", "yes"), 100, replace = TRUE), var2 = sample(c("yes", "no"), 100, replace =…
marcel
  • 389
  • 1
  • 8
  • 21
0
votes
1 answer

Trying to convert a standard plot to a barplot

I am new to R and could really do with some assistance. I have these three data frames. > Botcv Date Average 1 2014-09-01 4.0 2 2014-10-02 5.5 > Botc1 Date Average 1 2014-10-15 2.125 2 2014-11-12 1.000 3 2014-12-11 …
opalfruits
  • 719
  • 2
  • 7
  • 12
0
votes
2 answers

Stacked column graph with multiple entries per category

I think that I am dealing with a special type of graph: I've researched stacked column graphs but they will only allow one series (type) entry per category (A,B,C). Is there a way to display this using Excel/Access PivotCharts?
Sam
  • 43
  • 6
0
votes
0 answers

Stacked Barplot with multiple dimensions on x axis in ggplot2

I want to create a stacked bar plot with two dimensions on the x axis. So far I could only find examples with one dimension (which I show below as example). But I need the following set-up: main x-axis = case, sub-x-axis = day, fill = category, y =…
Triamus
  • 2,415
  • 5
  • 27
  • 37
0
votes
1 answer

d3 stacked bar with bars don't update in a transition

In sequence of this problem (d3 show labels only for ticks with data in a bar chart) I've applied a transition to change the data of a stacked bar chart using D3. My axes have a perfect transition and modification for this new dataSet, but the…
milheiros
  • 621
  • 2
  • 14
  • 34
0
votes
0 answers

Re-produce Stacked Bar Graph in R

I have below table and needed to reproduce the chart generated in Excel. zz <- "Group_1 57.05% 42.95% Group_2 33.67% 66.33% Group_3 11.63% 88.37% Group_4 50.97% 49.03% Group_5 0.00% 0.00% " Data <- read.table(text=zz, header =…
Prasanna Nandakumar
  • 4,295
  • 34
  • 63
0
votes
0 answers

Customizing jfreechart

I have Figure 1 and I am using the following code for it: ItemLabelPosition p = new ItemLabelPosition( ItemLabelAnchor.INSIDE3, TextAnchor.TOP_RIGHT, TextAnchor.BASELINE_RIGHT, 0.0); I want to get the chart as Figure 2 where the counts are shown…
Leo
  • 5,017
  • 6
  • 32
  • 55