Skip to main content

All Questions

Tagged with
0 votes
2 answers
72 views

Treating Date and Time for a River Discharge Graph

I downloaded discharge data for a river from a government website, they had formatted the date and time data as so please see format. This is my code library(ggplot2) ggplot(CHEM_RESULTS, aes(x= `...
Rosie Lomas 's user avatar
1 vote
1 answer
34 views

Secondary y axis R ggplot2

I need a graph with a secondary y axis like this, but I'm having some issues: I have tried a lot of changes in my code, but it seems like the axis scales are not working, and now this is what I got: ...
INGRID MENDOZA's user avatar
0 votes
1 answer
19 views

Stacked line graph while preserving the visualization of each (separate) line graph

I have the following data.table: > df # A tibble: 18 × 3 std near off <dbl> <dbl> <dbl> 1 0.3 0.849 0.904 2 0.4 0.850 0.916 3 0.5 0.859 0.924 4 0.6 0.872 0....
Nikos's user avatar
  • 472
0 votes
1 answer
54 views

How can I insert a line graph (ylim = 27. 30) into another diagram with 2 line graphs (ylim=0,120) without distortion?

I need to visualize data of different character (temperature, light intensity, rel. humidity) for a kind of climate diagram. My problem, I believe, lies within the different ylims, which prevent an ...
anandamid's user avatar
1 vote
0 answers
88 views

Adding significance values between groups on line plot in R (ggplot)

I've created a line plot that displays weight data over time in a diet study. I am trying to add significance values between each group at the end of the time period. My data is similar to the ...
Abhishek Shastry's user avatar
0 votes
0 answers
48 views

How can I fix my x-axis to show all the years that is within my dataset on my graph as well as take away the .0 .5 at the end of each year label?

I'm having issues on being able to show all the years on my graph that are represented in my dataset such as 2008,2009,2010,2011,2013,2014,2015,2016,and 2017. It is only using the years 2010 2012 2015 ...
Sara's user avatar
  • 1
0 votes
0 answers
54 views

Making a graph with ggplot2 out of an excel file with multiple groups

I want to make a line plot with ggplot2 from an excel file of 5 different groups, related to the beta methylation values compared to the probes. i tried different scripts from other websites but i ...
liselot 's user avatar
0 votes
0 answers
23 views

Fit two line graphs with different values in the same chart

I have one set of data called Earnings which span from 0-80000, and one called NBPrice which span from 0-200, and would like to fit both in the same chart, but the first range is too high, any way to ...
user22191373's user avatar
-1 votes
1 answer
81 views

A line graph instead of histogram

hi there I hope you all doing great I have created this graph as a boxplot My boxplot graph by this code: library(tidyr) library(ggplot2) library(dplyr) library(tidyverse) library(skimr) library(...
Muhammed Edib Mokresh's user avatar
-1 votes
1 answer
40 views

How to calculate the SE for multiple column and plot in the line graph in R?

Con A B C D 20.0000 0.7150 0.6014 0.5665 0.5954 10.0000 0.5245 0.5139 0.5119 0.7416 5.0000 0.4305 0.3585 0.3347 0.6231 2.5000 0.2941 0.2592 0.2189 0.4809 1.2500 0.2257 0.1990 ...
Tanjim Ahmed's user avatar
0 votes
2 answers
47 views

Plot line graph or geom-line based on three columns and groupby

I want to plot the percentage of people by socio-economic status by AgeGroup. Below is the example of dataframe. S.NO SocioEcnomicStatus Age AgeGroup P1 2 43 36-45 AgeGroup P2 5 27 26-35 AgeGroup ...
Usman YousafZai's user avatar
0 votes
1 answer
49 views

R drawing 2 lines with confidence interval on the same graph

I am trying to draw two lines on the same graph with odds ratio and confidence interval. X axis is age group and y axis is odds ratio. There are two groups: cases and control This is what I tried so ...
Someone's user avatar
-1 votes
2 answers
169 views

Converting days to months of the year

I have a data frame with one of the columns given as time. The time column is as a result of simulations from ODE system of equations. I want to convert the time column to months of the year. df <- ...
Joseph's user avatar
  • 1
0 votes
1 answer
161 views

What is the best way to create a line graph in R ggplot2 for a dataframe containing 2 replicates per sample

I have been playing around for ages trying to figure out the best way to manipulate a small dataframe into a format that can be used in ggplot to create a data frame based on the average of each ...
dr_Manhattan's user avatar
0 votes
0 answers
54 views

problem on axis with ggplot linegraph getting "Did you mean `limits = factor(...)` or `scale_*_continuous()`? "

I am a beginner with R and ggplot and have been facing an issue with defining my x and y axis on a linegraph. I have the following dataset called UK: I want to plot the beds ratio evolution with x ...
Adeline Kugler's user avatar

15 30 50 per page
1
2 3 4 5
9