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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:11:22+00:00 2026-06-15T19:11:22+00:00

In a linetype scale , how do I skip certain values for my graph?

  • 0

In a linetype scale, how do I skip certain values for my graph? Value 2 and 3 look too similar for my taste, so I’d like to skip one of them and instead use 0, 1, 2 and 4.

  • 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-15T19:11:23+00:00Added an answer on June 15, 2026 at 7:11 pm

    You could use scale_linetype_manual() and set values.

     df=data.frame(x=rnorm(100),y=rnorm(100),group=rep(c("a","b","c","d"),each=25))
    
     ggplot(df,aes(x,y,group=group))+
       geom_line(aes(linetype=group))+
       scale_linetype_manual(values=c(6,1,2,4))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an API (from third party java library) that looks like: public List<?>
I hope this isn't too specific. I have created an XML Schema which i
I am trying to automate the setting of the linetype in a ggplot call
I am trying to make a stacked geom_area plot, but would like to outline
I would like to adjust the linetypes in the following ggplot. I thus introduce
Basically I want to create a data structure of values already known at compile
In both plots the points look different, but why? mya <- data.frame(a=1:100) ggplot() +
I'm using asynchttpclient. When building up parameters, one passes a java.util.Map to the setParameters
Example Code: EmigProb<-c(rep(seq(0.1,0.8,length=5),4),rep(seq(0.1,0.8,length=5),4)) RemainEmigProb<-c(rep(0.2,5),rep(0.4,5),rep(0.6,5),rep(0.8,5),rep(0.2,5),rep(0.4,5),rep(0.6,5),rep(0.8,5)) Value<-rnorm(40,5,3) Parameter<-c(rep(Survival,20),rep(Resight,20)) fakedata<-data.frame(EmigProb=EmigProb,RemainEmigProb=RemainEmigProb,Value=Value,Parameter=Parameter) q <-ggplot(fakedata,aes(EmigProb,Value,shape=factor(RemainEmigProb),colour=factor(Parameter),linetype=factor(RemainEmigProb)))+scale_colour_discrete(Parameter)+scale_linetype_discrete(Remain Emigrant Probability)+scale_shape_manual(Remain Emigrant Probability,values=c(0,5,6,15)) q
I'd like to draw a white filled polygon, with arbitrary angle, in a black

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.