Skip to main content

All Questions

Tagged with
0 votes
1 answer
45 views

my values in y axis doesn't match in ggplot

I have a dataset that looks like this: I want to plot common and unique values between two cases short only vs shortplus long case. I have used ggplot to plot a stack bar plot for better visualization....
Rhea Bedi's user avatar
  • 139
2 votes
1 answer
33 views

Labeling/positioning of grouped, stacked, circular barchart in R

I am trying to create a circular, stacked, and grouped bar chart using ggplot2. The problems I am having are adjustment of prop labels within the chart itself. The labels positioning within the bars (...
ipav's user avatar
  • 21
0 votes
0 answers
44 views

Haskell add string names to bar plot

I'm trying to plot a very simple bar plot using plot. However, I've gotten stuck with adding strings to the base of the bars along the X-axis. My attempt: import Graphics.Rendering.Plot.Figure import ...
Pompan's user avatar
  • 119
0 votes
1 answer
128 views

How to create a circular grouped and stacked bar chart in R

Trying to create a circular stacked bar chart, like this one: https://r-graph-gallery.com/299-circular-stacked-barplot.html . But that also includes subgroups. I'm unable to create a chart that is ...
ipav's user avatar
  • 21
0 votes
1 answer
89 views

Reorder bar plot in ggplot R, by Frequency AND Alphabetically

Bar plot in ggplot are automatically arranged alphabetically. My plots are actually plotted alphabetically inverted and I can invert the alphabetical order and make it forward. If i put the condition ...
rousou's user avatar
  • 3
0 votes
1 answer
57 views

Why 0.00% shows in each barplot's first bar?

When I use the below code and try to run it. It shows everything perfectly except 0.00% shown in each bar plot. dt = pd.DataFrame({'witness':['No', 'No', 'No', 'No', 'No', 'No', 'No', 'Yes', 'No', 'No'...
Manish Patel's user avatar
1 vote
1 answer
54 views

Stacked barplot for a matrix with numbers as labels on the bars

I have a matrix which has 4 columns and 4 rows. But I am having a lot of troubles to put the numbers in the graph in an elegant way. Specifically, I want to have the numbers of the each part of the ...
John M. Riveros's user avatar
0 votes
1 answer
25 views

standard deviation line not in the middle of bar plot

i'm trying to plot some values with their sd values, but the sd lines are not in the middle of each barplot. do you know how to fix or if there's another way. Here's an example : # Example data: ...
Reda's user avatar
  • 499
0 votes
1 answer
37 views

Is there a way to make a bar plot from only the non-diagonal elements of a confusion matrix?

I'm running a classification task for 3 depth cateogries of earthquakes (shallow, inter, deep) and a 4th category for noise. I'm trying to visualise the varying size of mislabelling in classification ...
Zakary Hansen's user avatar
0 votes
0 answers
34 views

Same scale in legend for circular bar plot

Building on this post and code (with reproducible example) Different fill color for negative values in circular barplot, I want to plot two of these figures together as a comparison, like this: But ...
MoonS's user avatar
  • 175
0 votes
1 answer
40 views

geom_bar define border color of even column instead of all columns

I want to draw a stacked bar plot using ggplot with blue outline on even columns. That is, making column 2, 4, 6, ... outlined in blue. However, I can only make it to outline all of them. library(...
quick2063's user avatar
-1 votes
1 answer
128 views

Ordering plots so that twin axis plot is behind axis plot (matplotlib)

Im plotting graphs (nrows=2), p1 bars on top chart y-axis, p2 bars on bottom y axis, and a line/area chart on the twin yaxis (pidx on top and bottom). I cant seem to get the twin axis plot (pidx) to ...
AndysPythonStuff's user avatar
0 votes
1 answer
42 views

Plotting daily timeseries (x-axis) series stock data (y-axis) produces chats with gaps at weekends. How to remove?

Im downloading end of day data using yahoo and plotting graphs. Here an example of part of a script for plotting a bar chart of the accumulated volume (vs the index on the right axis): p1 = cum_vol....
AndysPythonStuff's user avatar
0 votes
0 answers
22 views

Why does box.set_right not work correctly?

The goal is to draw a box that starts with a specific bar and ends as soon as another specific bar appears. If so, a new box should start - the old one should still stay on the chart. Conditions for ...
honeybadger21's user avatar
0 votes
1 answer
67 views

Plotting extreme negative and positive values

I have a dataframe with three values, i would like to plot as a bar chart. I am having an issue with extreme values, I tried taking a log, but it can't handle negative values, can you please help me ...
Add's user avatar
  • 607

15 30 50 per page
1
2 3 4 5
49