## User: amandinelecerfdefer

amandinelecerfdefer •

**20**- Reputation:
**20**- Status:
- New User
- Location:
- Last seen:
- 2 months, 1 week ago
- Joined:
- 5 months, 3 weeks ago
- Email:
- a******************@orange.fr

#### Posts by amandinelecerfdefer

<prev
• 44 results •
page 1 of 5 •
next >

0

votes

0

answers

111

views

0

answers

... Hello,
I use an R code to create linear regression plots of one of my variables for each of my files.
My code works very well but I would like to add a new model (in other words, I would like to show a second curve in blue for example).
here is the code used to form my simple single curve regress ...

written 3 months ago by
amandinelecerfdefer •

**20**• updated 3 months ago by RamRS ♦**24k**0

votes

1

answer

675

views

1

answers

Comment:
C: R add r-squared and p-value

... It was actually a mistake on my part the folders create well but you still have to put the ggplot in a variable and then print it because otherwise no graph can be saved.
Thank you, I will be able to make my script clearer. Thank you for your time.
edit : and I don't want to create a folder with t ...

written 4 months ago by
amandinelecerfdefer •

**20**0

votes

1

answer

675

views

1

answers

Comment:
C: R add r-squared and p-value

... thank you for your proposal, but R shows me an error: Error in data[, x] : incorrect number of dimensions
edit :
Sorry, you were right! THANK YOU! I made a mistake by leaving i in the ggscatter function when you had to put data. Thank you for your help with this function. ...

written 4 months ago by
amandinelecerfdefer •

**20**0

votes

1

answer

675

views

1

answers

Comment:
C: R add r-squared and p-value

... thank you for your proposal, but R does not recognize the different folders and files.I will take into account your comments and try to improve my code, thank you ...

written 4 months ago by
amandinelecerfdefer •

**20**0

votes

1

answer

675

views

1

answers

Comment:
C: R add r-squared and p-value

... Thank you for your answer (My data has NAs)
1. As I want to form the plots (among other things) in specific places, I thought that the best way was to always change the directory.
2. the brackets were advised by my supervisor. As I'm a beginner in R, I followed everything he told me.
3. Okay, tha ...

written 4 months ago by
amandinelecerfdefer •

**20**10

votes

1

answer

675

views

5 follow

1

answer

... Hello,
I have created an R code which in a folder puts the graphs of the linear regression on me, but I would like to show on these graphs the r-squared and the p-value of each lm(with NAs) . How to do this?
library(ggplot2)
library(ggpmisc)
setwd(work)
files <- list.files( ...

written 4 months ago by
amandinelecerfdefer •

**20**• updated 4 months ago by davidtmscott •**80**0

votes

1

answer

200

views

1

answers

... despite spending time rewriting the script thanks to your answers, I still can't do it.
I also try :
setwd("/Users/amandinelecerfdefer/Desktop/global")
library(ggplot2)
ggplotRegression <- function (fit) {
require(ggplot2)
ggplot(fit$model, aes_string(x = n ...

written 4 months ago by
amandinelecerfdefer •

**20**0

votes

1

answer

200

views

1

answers

... what I'm trying to do:
I have a set of csv files in a directory
for each file, I want to do a linear regression for EGFR_12 ~ score and save the lm plot in a variable (?) (with on this graph r2, p-value), EGFR_24 ~ score and save the lm plot in a variable (?) (with on this graph r2, p-value), EGFR_3 ...

written 4 months ago by
amandinelecerfdefer •

**20**4

votes

1

answer

200

views

1

answer

... Hello
I'm trying to automate on a set of files, the realization of linear regression (lm) and the corresponding graph.
example for 1 file :
score;EGFR_12;EGFR_24;EGFR_36;EGFR_48;EGFR_60;pa
-0,5992442;67,56217938;53,61312383;52,93430604;;;1
-0,6795702;53,28459074;57,23583761;43,94840102; ...

written 4 months ago by
amandinelecerfdefer •

**20**0

votes

2

answers

223

views

2

answers

Comment:
C: new file with line in common

... Thank you! This is exactly the solution to my problem: an encoding problem! ...

written 4 months ago by
amandinelecerfdefer •

**20**#### Latest awards to amandinelecerfdefer

No awards yet. Soon to come :-)

Use of this site constitutes acceptance of our User
Agreement
and Privacy
Policy.

Powered by Biostar
version 2.3.0

Traffic: 1980 users visited in the last hour