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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:56:29+00:00 2026-06-18T06:56:29+00:00

I am using an orphaned R library ( wmtsa ). One of it’s functions

  • 0

I am using an orphaned R library (wmtsa). One of it’s functions creates a continuous wavelet transform (wavCWT()) that returns a wavelet object and it can be plotted by calling the traditional plot() function. Unfortunately, the way the function is written does not allow me to change some typical plot parameters. In particular, I cannot set axes=F and I am forced to have the axes plotted all the time. This is not helpful as I want to add extra layers to my device and the axes are different and it they are offset.

Is there a way to pass the argument to the method that is calling the plot() function?

If this is not possible I am afraid I will have to modify the source code. If this is the case, where should I look in order to modify the methods of this kind of object?

I found the source of the methods but my hacking skills are limited and I am a bit lost.

Example:

 library(wmtsa)   # assuming you have installed the package wmtsa
 wavCWT(sin(rnorm(1000)))
 plot(W, power.stretch=0.5)

produces this plot:

enter image description here

but if I try to remove axes with axes=F I get the following message:

plot(W, power.stretch=0.5, axes=F)
Error in plot.default(NA, NA, xlim = xlim, ylim = ylim, type = "n", xaxs = xaxs,  : 
formal argument "axes" matched by multiple actual arguments
  • 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-18T06:56:30+00:00Added an answer on June 18, 2026 at 6:56 am

    You do need to change the source, but only very slightly. On line 269-270 of wav_xform.R, inside the plot.wavCMT function change the line:

    image(data$x, data$y, imageScale(data$z, power.stretch=power.stretch), ...,
      xlab=xlab, ylab=ylab, axes=TRUE)
    

    to

    image(data$x, data$y, imageScale(data$z, power.stretch=power.stretch), ...,
      xlab=xlab, ylab=ylab)
    

    The reason is that ellipsis (...)- that means “take any extra arguments to the plot function and pass them to the image function”. However, the original code had axes=TRUE there too, which means that if you try and pass axes=FALSE you’ll get a formal argument "axes" matched by multiple actual arguments error.

    Then (once you reinstall), the following works to get rid of the axes:

    library(wmtsa)
    sunspots.cwt <- wavCWT(sunspots)
    plot(sunspots.cwt)  # has axes
    plot(sunspots.cwt, axes=FALSE)  # does *not* have axes
    

    Also note that you can change other common plot parameters, thanks to that ellipsis! (That’s true even if you never modify the source). For example:

    plot(sunspots.cwt, main="My great wavelet plot")  # change title
    plot(sunspots.cwt, xlim=c(1750, 1850))  # change x axis range
    plot(sunspots.cwt, ylim=c(0, 2))  # change y axis range
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the python api and have created a few orphaned blobs during testing.
I want to start by saying that I am a big fan of using
I have a screen that pops up on load with a print dialog using
we use Rails and EventMachine together, and when using that combo with Passenger there
I am working on a library that loads files (hfd5 - pytables) into an
I'm using the Script# library with ASP.NET. I want to listen and respond to
Using CMake I want to check if a particular function (cv::getGaborKernel) from OpenCV library
Using SSRS 2008 R2 I have a background process that dynamically generates RDL for
Using the Exiv2 library to write some exif tags to an image i'm running
Using Point Cloud Library on Ubuntu, I am trying to take multiple point clouds

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.