Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8559175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:58:48+00:00 2026-06-11T15:58:48+00:00

ggplot(test,aes(x=timepoints,y= mean,ymax = mean + sde, ymin = mean – sde)) + geom_errorbar(width=2) +

  • 0
    ggplot(test,aes(x=timepoints,y= mean,ymax = mean + sde, ymin = mean  - sde)) + 
       geom_errorbar(width=2) +
       geom_point() +
       geom_line() +
       stat_smooth(method='loess') + 
       xlab('Time (min)') +
       ylab('Fold Induction') +          
       opts(title = 'yo')   

enter image description here

I can plot the blue ‘loess’-ed line. But is there a way to find the mathematical function of the blue ‘loess’-ed line?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:58:49+00:00Added an answer on June 11, 2026 at 3:58 pm

    You can get the predictions for a regular sequence:

     fit <-loess( mean ~ timepoints, data=test)
     fit.points <- predict(fit, newdata=  data.frame(
                      speed = seq(min(timepoints), max(timepoints), length=100)), 
                  se = FALSE)
     fitdf <- dataframe(x = seq(min(timepoints), max(timepoints), length=100)
                        y = fit.points)
    

    You can then fit to that set of points with splines of an appropriate degree. Cubic spline fits can be described with greater ease than can loess fits.It would be easier to synchronize an answer to variable names it you had offered a data example to work with. The plot does not seem to be created with that code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given the following ggplot2 chart: ggplot(my_data, aes(colour=my_factor) + geom_point(aes(x=prior, y=current)) + facet_grid(gender ~ age)
I have following R code: ggplot(data=curve,aes(x = expected, y=result/games)) + geom_point(aes(x=-expected, colour=games)) + stat_function(fun=funx,
Another ggplot legend question! I have a dataset of the form test <- data.frame(
Here's a plot: library(ggplot2) ggplot(mtcars, aes(x = factor(cyl), y = hp, group = factor(am),
I'am doing histogram with ggplot. p <- ggplot(TotCalc, aes(x=x,y=100*(..count../sum(..count..)))) + xlab(xlabel) + ylab(ylabel) +
I am plotting a dataset using the following: plot = ggplot(transData, aes(x=Time, y=Value)) +
consider the following heatmap: df <- data.frame(a=rep(letters[1:10],10), b=rep(letters[1:10], each=10), c=sample(2,100, replace=TRUE)) ggplot(df, aes(a, b))
This is my code: ggplot(tmp, aes(x=tmp$V2, y=-log10(tmp$V3), fill=tmp$V1)) + geom_bar(stat=identity) + coord_flip() Now I
In ggplot I can add a series to a plot with: ggplot(diamonds, aes(x =
I'm an R/ggplot newbie. I would like to create a geom_line plot of a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.