Questions tagged as 'ggplot2'

1
answer

Graphic ggplot x axis

This is my data.frame: datamatrix=structure(list(month = c(1980, 1980.08333333333, 1980.16666666667, 1980.25, 1980.33333333333, 1980.41666666667, 1980.5, 1980.58333333333, 1980.66666666667, 1980.75, 1980.83333333333, 1980.91666666667, 1...
asked by 20.12.2016 / 14:17
2
answers

Bar chart - ggplot2

I have a date-frame with the structure below. I want to make a simple bar chart that lists the "CID" by type (A, B, C, etc ...) with the days of removal and the other with the Meetings. df <- data.frame(CID = c("A", "A", "B", "C", "C", "Z")...
asked by 06.08.2016 / 13:58
1
answer

Creating BoxPlot in ggplot2

I'm doing some simulations on R . When generating data.frame and requesting boxplots printing with small sample size and number of samples boxplot is generated perfectly. The problem is when increasing the sample size...
asked by 04.03.2017 / 18:32
1
answer

How to put values in faceted bar charts in R?

I'm trying to generate a faceted bar chart with the R, according to date frame and commands below: ############################################### ######___PACKGES UTILIZADOS_____############### #####################################...
asked by 05.07.2016 / 15:48
1
answer

Bar graph with percentages - ggplot2

v1 = c("Sim","Não","Não","Não","Não","Sim","Sim","Sim","Sim","Sim") v2 = c("branco","branco","pardo","preto","pardo","pardo","preto","branco","preto","pardo") dados = data.frame(v1,v2) I want to build a bar chart with relative frequencies tota...
asked by 01.10.2017 / 16:23
1
answer

Multiple Linear Regression in R [closed]

Hello, I have data ( link ) from a completely randomized experiment, where the (0.25, 0.50, 0.75, and 1.00) of different fungicides (4 natural + 1 chemical + control) with water). In total there were 24 treatments x 4 replications each. Si...
asked by 14.09.2018 / 19:39
2
answers

Does not create the legend on the ggplot2 chart

Hello, I'm here to expose a very basic problem that's occurring, I'm not able to plot the legend next to the graph. I will not say much, just go for my code and the graphic print for you to analyze. library(lubridate) library(gtable) library(g...
asked by 27.02.2018 / 16:03
1
answer

R: Overlapping subtitles [ggplot2]

Hello, I have a subtitle overlay problem in ggplot. The following error message appears. Scale for 'fill' is already present. Adding another scale for 'fill', which will replace the existing scale. I used two overlapping data.frames whose s...
asked by 02.02.2018 / 14:56
2
answers

Presentation of disproportionate rmarkdown graph

Hello, I have the following problem: when I print the chart in Rmarkdown it gets the numbers one above the others, besides the month / year indication in the coordinates also get the wrong view .. Isthereanycodetoincreasethesizeofthegraphsot...
asked by 18.08.2017 / 14:19
1
answer

Python / R Check for density peaks in ggplot2

I have two sets of data formed as follows: A = {id1: 0.3, id2: 0.1, id3: 0.3 ... idn: 0.2} B = {id1: 0.01, id2: 0.04, id3: 0.75 ... idn: 0.9} I used the ggplot function of R to plot the density values in the same graph, thus:...
asked by 26.05.2017 / 23:11