Most voted "barplot" questions
In`R`, the function `Graphics::barplot` is a function of the`Graphics` package of the standard library used to construct bar charts.
Learn more…15 questions
Sort by count of
-
10
votes2
answers5010
viewsHow to correctly position the Abels in the barplot?
I am not able to correctly position the names in a barplot of R, because they are very extensive. My data is this way: The names end up appearing this way: fator_tecnologico_labels <- c(…
-
5
votes1
answer220
viewsBarplot arguments
I made a graph with the barplot function, and I need to change the angle of the text on the x-axis, because the words are long. I know that to place them vertically use them=2, but I want them to be…
-
5
votes1
answer452
viewsbar graph ggplot 2 vectors side by side
Can anyone tell me if it is possible to make this chart with the bars side by side without using data frames or "melt"? v1=c(100,120,140) v2=c(125, 102,104) a=data.frame(year=factor(2003:2005))…
-
3
votes2
answers2625
viewsBar graph text stacked in R
I want to create a stacked bar chart similar to the one below I used the following command barplot(t(dadosAQI), xlab="%", col=colAQI, horiz = TRUE, cex.axis = 0.8, cex.names = 0.8, las=1 ) But I…
-
2
votes1
answer193
viewsChange y-axis scale to show decimal differences on a bar graph
I’m filling a bar chart, the differences between the bars are 0.1 how do I move the axis so that these differences appear ? fvcmt = c(95.2, 95.3, 95.4, 95.1, 95.1, 94.8, 95.1) fevmt = c(91.9, 92.1,…
-
2
votes1
answer56
viewsError when colorizing bar graph and caption with the pal.bands function
I’m trying to reproduce the chart below: However, I am not able to color my chart through the function pal.bands according to the information that is in the spreadsheet below: The data is found in…
-
1
votes1
answer57
viewsCore Plot - Initial zoom for bar graph
How do I set the initial zoom based on the maximum value of the X axis and the Y axis? Example: Chart 1: Maximum Values: X = 100; Y = 110; Graph 2: Maximum Values: X = 180; Y = 230; I need the…
-
1
votes1
answer466
viewsLabel does not appear on the chart
Hello, My configuration is as follows:: > sessionInfo() R version 3.3.1 (2016-06-21) Platform: x86_64-W64-mingw32/x64 (64-bit) locale: _LC_COLLATE=Portuguese_Brazil.1252_,…
-
1
votes2
answers2242
viewsShow Data Labels in Column Chart in R (ggplot2)
I’m a beginner in R and I’m trying to create a bar chart and I can’t display the data labels on each bar. Follow link to the used data frame:…
-
1
votes1
answer1846
viewsLanguage R: How to get scientific numbers out of graphs?
data frame taken from this command in the database: mes = base_final %>% group_by(mes)%>% summarise(soma_trs = sum(valor_trs)) dataframe mes <- data.frame(mes=c ("agosto/2017" ,…
-
1
votes0
answers30
viewsPlot lines from two different matrices in R?
I have two matrices with same number of rows and different number of columns. Each matrix is a sample, each row is a compound (1,2 and 3), and each column is the residue number. The value in the…
-
0
votes1
answer126
viewsBar graph - Manual grouping of data
Good morning guys. I’m trying to make a bar graph with ggplot(), but I’m having a hard time with one detail. Basically I would like to manually group the data that gets inserted inside each bin of…
-
0
votes1
answer52
viewsError in program something related to the lines
energia <- data.frame("curso" = 1:15,"enem"=1:5) energia$curso <- c("Eng Aeroespacial", "Eng Ambiental", "Eng de Controle e Automação", "Eng de Minas", "Eng de Produção", "Eng de…
-
0
votes0
answers39
viewsTurning y-axis into percentage
I wrote the following code that generates the following graph with the absolute values on the y-axis. I would like to know how to transform the y-axis to percentage to decrease the effect of the…
-
-1
votes2
answers44
viewsBarplot in R: Help with the arguments to create a more complete graph
Hello. I need to create the two charts below in this exact way. Certain adjustments, for example: the creation of a value of 7 in the x-axis, which has been omitted; the horizontal axis with traces…