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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:34:04+00:00 2026-05-23T22:34:04+00:00

I want to plot data in a graph with larger font-size for the lables.

  • 0

I want to plot data in a graph with larger font-size for the lables.

x = c(0:10)
y = sin(x) + 10

plot (
    x, y, type="o",
    xlab = "X values",
    ylab = "Y values",
    cex.axis = "2",
    cex.lab = "2",
    las = 1
)

Unfortunately the numbers on the y-axis overlap the label for the y-axis. I tried to use mar, but that did not work (By the way, how can I find out which graphic parameters can be directly used in the plot command and which have to be set with the par()-method? ).

How can I avoid that labels overlap?

Thanks for your help.

Sven

  • 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-23T22:34:05+00:00Added an answer on May 23, 2026 at 10:34 pm

    Use par(mar) to increase the plot margins and par(mgp) to move the axis label.

    par(mar = c(6.5, 6.5, 0.5, 0.5), mgp = c(5, 1, 0))
    #Then call plot as before
    

    In the help page ?par it explains which parameters can be used directly in plot and which must be called via par.

    There are several parameters can only be set by a call to ‘par()’:

        • ‘"ask"’,
    
        • ‘"fig"’, ‘"fin"’,
    
        • ‘"lheight"’,
    
        • ‘"mai"’, ‘"mar"’, ‘"mex"’, ‘"mfcol"’, ‘"mfrow"’, ‘"mfg"’,
    
        • ‘"new"’,
    
        • ‘"oma"’, ‘"omd"’, ‘"omi"’,
    
        • ‘"pin"’, ‘"plt"’, ‘"ps"’, ‘"pty"’,
    
        • ‘"usr"’,
    
        • ‘"xlog"’, ‘"ylog"’
    
     The remaining parameters can also be set as arguments (often via
     ‘...’) to high-level plot functions such as ‘plot.default’,
     ‘plot.window’, ‘points’, ‘lines’, ‘abline’, ‘axis’, ‘title’,
     ‘text’, ‘mtext’, ‘segments’, ‘symbols’, ‘arrows’, ‘polygon’,
     ‘rect’, ‘box’, ‘contour’, ‘filled.contour’ and ‘image’.  Such
     settings will be active during the execution of the function,
     only.  However, see the comments on ‘bg’ and ‘cex’, which may be
     taken as _arguments_ to certain plot functions rather than as
     graphical parameters.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use core-plot for drawing line graph dynamically. data won't come at
I've following data: I want to plot a graph shows for all x the
I'm (trying to) using JSON with PHP. I want to plot a graph using
I want to plot some data. The first column contains the x-data. But matplotlib
I want my flot graph to update it's data on set intervals. I have
I'm using Flot to plot a line graph and my data set is a
I want to plot the pitch of a sound into a graph. Currently I
I want to plot some (x,y) points on the same graph and I don't
I have data that looks like this. In which I want to plot accumulative
I've got a series of (x,y) values that I want to plot a 2d

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.