Web Content Display

Web Content Display (CoastWatch User Forum)

The NOAA CoastWatch Forum provides information in several categories.  The information is relevant to CoastWatch products and software (https://coastwatch.noaa.gov)  and vary in technical details.  For questions and issues not addressed here,  start a thread in the appropriate category or contact the CoastWatch HelpDesk (coastwatch.info@noaa.gov).  Please note our Privacy Policy (https://www.noaa.gov/privacy.html) and that this is a public forum.  All information is voluntarily and anonymous submissions are accepted pending review prior to posting. 

Forums

Back

RE: image.scale error in R

JB
Jason Baker, modified 4 Years ago.

image.scale error in R

Youngling Posts: 5 Join Date: 6/12/17 Recent Posts

In the first R tutorial in the section on "Creating a map of average SST over a year", the function is image.scale is called. I got an error "Error in image.scale(sst.yr, col = c, breaks = breaks, horiz = FALSE,  :   could not find function "image.scale""

I couldn't figure out what package is image.scale is in. 

I'm not really concerned because I'm trying to use ggplot for everything, so expect I won't be using the image function anyway, but thought I'd raise this in case it's an issue for others running the tutorial.

MA
Melanie Abecassis, modified 4 Years ago.

RE: image.scale error in R

Youngling Posts: 65 Join Date: 6/12/17 Recent Posts

Hi Jason,

There is actually a link to the source file in the tutorial:
https://oceanwatch.pifsc.noaa.gov/files/scale.R

You need to download it and then source it: source('scale.R') ​​​​​​​.

JB
Jason Baker, modified 4 Years ago.

RE: image.scale error in R

Youngling Posts: 5 Join Date: 6/12/17 Recent Posts
Thanks!

On Thu, Oct 29, 2020 at 11:54 AM Melanie Abecassis <VLab.Notifications@noaa.gov> wrote:

Hi Jason,

There is actually a link to the source file in the tutorial:
https://oceanwatch.pifsc.noaa.gov/files/scale.R

You need to download it and then source it: source('scale.R') ​​​​​​​.


--
Melanie Abecassis CoastWatch Virtual Lab Forum https://vlab.noaa.gov/web/coastwatch/coastwatch-knowledge-base/forum/-/message_boards/view_message/12359528 VLab.Notifications@noaa.gov

Reply to Main Thread
Quick Reply