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 7565771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:14:26+00:00 2026-05-30T14:14:26+00:00

UPDATE: I found the answer… included it below. I have a dataset that contains

  • 0

UPDATE: I found the answer… included it below.

I have a dataset that contains the following variables and similar values:

COBSDATE,   CITY, RESPONSE_TIME
2011-11-23  A     1.1
2011-11-23  A     1.5
2011-11-23  A     1.2
2011-11-23  B     2.3
2011-11-23  B     2.1
2011-11-23  B     1.8
2011-11-23  C     1.4
2011-11-23  C     6.1
2011-11-23  A     3.1
2011-11-23  A     1.1

I have successfully created a graph that displays all of the response_time values and a smooth geometry to further describe some of the variation.

The challenge that I have is that I want a better view of the smoothed value, and one of the cities has frequent ‘outliers’. I can control this by adding ylim(0,p99) to the plot, but this then causes the smooth to only be calculated on the subset of data.

Is there a way to use all of this data for the smoothed plot and the only the subset for the jitter plot?

My code here (both are the same except for the + ylim(0,20):
truncated –

ggplot(dataRaw, aes(x=COBSDATE, y=RESPONSE_TIME)) + 
    geom_jitter(colour=alpha("#007DB1", 1/8)) + 
    geom_smooth(colour="gray30", fill=alpha("gray40",0.5)) + 
    ylim(0,20) + 
    facet_wrap(~CITY)

Whole data set –

ggplot(dataRaw, aes(x=COBSDATE, y=RESPONSE_TIME)) + 
    geom_jitter(colour=alpha("#007DB1", 1/8)) + 
    geom_smooth(colour="gray30", fill=alpha("gray40",0.5)) + 
    facet_wrap(~CITY)
  • 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-05-30T14:14:28+00:00Added an answer on May 30, 2026 at 2:14 pm

    If you just want to “zoom in”, you can use coord_cartesian:

    ggplot(dataRaw, aes(x=COBSDATE, y=RESPONSE_TIME)) + 
      geom_jitter(colour=alpha("#007DB1", 1/8)) + 
      geom_smooth(colour="gray30", fill=alpha("gray40",0.5)) + 
      coord_cartesian(ylim=c(0,20)) + 
      facet_wrap(~CITY)
    

    If you want to use a subset of the data for the jitter geom, then override the data inheritance:

    ggplot(dataRaw, aes(x=COBSDATE, y=RESPONSE_TIME)) + 
      geom_jitter(data=subset(dataRaw, RESPONSE_TIME>=0 & RESPONSE_TIME<=20), 
                  colour=alpha("#007DB1", 1/8)) + 
      geom_smooth(colour="gray30", fill=alpha("gray40",0.5)) + 
      ylim(0,20) + 
      facet_wrap(~CITY)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE: I found a solution. See my Answer below. My Question How can I
UPDATE I found the answer and provided below Dear All, I want to insert
[Update: I've found the API reference. The method used is below] <?php wp_delete_post( $postid,
All the documentation I've found so far is to update keys that are already
I found something that works with updating one field at here: http://www.karlrixon.co.uk/articles/sql/update-multiple-rows-with-different-values-and-a-single-sql-query/ UPDATE person
Right guys, all autocomplete plugins and functions that I've found, they only update upon
Update: Solved, with code I got it working, see my answer below for the
UPDATE - Cause found! ... please read below & suggest the solution: While creating
UPDATE: I found the simple answer and it's completely my own fault: I stored
Has anyone ever set up error emailing with Fluorinefx? Update: Found the answer with

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.