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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:40:33+00:00 2026-06-02T11:40:33+00:00

I have a plot(1,1) legend(bottomleft, c(A,B,C), lwd=3, bty=n,lty=c(1,3,4)) Is it possible to make the

  • 0

I have a

plot(1,1)
legend("bottomleft", c("A","B","C"), lwd=3, bty="n",lty=c(1,3,4))

Is it possible to make the lines in the legend longer (base R only please)? It seems a bit difficult to immediately see the difference of lty=3 and lty=4 in the legend when the lines are so short. Increasing the lwd does not help either.

Thanks a lot

  • 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-02T11:40:35+00:00Added an answer on June 2, 2026 at 11:40 am

    You can set the seg.len argument.

    plot(1,1)
    legend("bottomleft", 
      c("A","B","C"), 
      lwd=3, bty="n",lty=c(1,3,4),
      seg.len=5
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Automatically plot different colored lines in MATLAB I have the following data
How do I make the following plot in R? I have a file of
I was wondering is it possible to prevent only a one element in plot
I have this plot [ Full Resolution ] I need to make a straight
Following works, (copy & paste into R) a=123 plot(1,1) legend('bottomleft',legend=bquote(theta == .(a))) I want
I have a problem drawing the legend of a pieChart with Core-Plot, because the
I have a plot whose legend should contain two levels. Ggplot shows a legend
I have a question about legends in ggplot2. I managed to plot three lines
I have a plot (sample code pasted below) that I am trying to add
I have a scatter plot in R (with ggplot2). The data has a numeric

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.