Skip to main content
2 votes
2 answers
102 views

What is the easiest-to-replicate way of reordering these bar graphs ( group1, group2) so that it is arranged in ascending order of col3 from bottom to top? I am looking for a solution that can be used ...
Wren's user avatar
  • 41
1 vote
1 answer
90 views

I am building a pie chart in ggplot using geom_bar and coord_polar and having problems with positionning the labels with geom_text. Ggplot seams to change the order of the classes and put the labels ...
Vitor Hugo Moreau's user avatar
0 votes
1 answer
44 views

I was able to produce a barplot by using following codes. However, the errobars are situated in the middle of the grouped bars, which share the same values of x-axis values (DAS). The width of grouped ...
PaddyRice's user avatar
0 votes
1 answer
54 views

I am trying to create a 2-factor plot where I can increase the distance between categories (dog vs. cat) WITHOUT affecting the padding between bars or width of the bars. This has been a whack-a-mole ...
wythe4's user avatar
  • 139
-1 votes
1 answer
70 views

I have trouble making line between two paired stacked boxplot. Im comparing pre ->post cellular composition change, though hard to draw line between the plots. shown below is my current script. I ...
juyong seong's user avatar
0 votes
1 answer
89 views

I have this code for a geom_bar plot ES <- ggplot(dfES, aes(x=Scenarios, y=Mean)) + geom_bar(position=position_dodge(), stat="identity", fill="lightblue", colour='...
Attila Borsos's user avatar
-1 votes
1 answer
62 views

I make a bar plot with two factors, one lays on the x axis and the other determines the fill color of the bars. I want to be the bars ascending from left to right within each x factor level. Further, ...
LulY's user avatar
  • 1,385
0 votes
1 answer
45 views

My legend is overlaying the point on the legend entries for the bars. I don't want the dots in my legend entries for "Shoot 1", etc. This answer partially fixed my problem, although I think ...
Jordan Woolfrey's user avatar
0 votes
1 answer
541 views

I have count data from several samples, which map to two classes, two groups, and three types: library(dplyr) set.seed(1) df <- data.frame(type = c(rep("A",12), rep("B",12), rep(...
dan's user avatar
  • 6,342
0 votes
1 answer
48 views

I want to represent percentages for categories of "more_know" from 1 to 7 within each group of "study". In the barplot, the height of category 1 is for both groups 3%. However, ...
Hildrun Walter's user avatar
2 votes
2 answers
67 views

I have a data frame that contains information classified by 2 factors, factor “a” and factor “b”. Factor “a” has levels A, B and C and factor “b” has levels R, S, T, U and V. a <- c("A", &...
Daniel Valencia C.'s user avatar
0 votes
0 answers
58 views

From this dataset: data <- data.frame("type" = c("low_carbon", "high_carbon"), "start" = c(0, 0.7 * pi), "...
Julien Larget-Piet's user avatar
1 vote
1 answer
481 views

I used the "ggchicklet" package to produce rounded stacked bar plots in R. However, this package is no longer available. On R News page is written "Use ggforce to replace ggchicklet as ...
Antonio's user avatar
  • 773
-1 votes
1 answer
74 views

colleagues. I am trying to build a distribution diagram that will satisfy the following conditions: Shows percentage of the values lying in each bin. Bin size is specified by user. All the bars are ...
forkintheass's user avatar
1 vote
3 answers
61 views

I am plotting the publication of scientific papers on a specific research topic on a timeline. I would like to add author and year to the corresponding rectangles using the "label" variable. ...
Milena's user avatar
  • 13

15 30 50 per page
1
2 3 4 5
73