openair icon indicating copy to clipboard operation
openair copied to clipboard

Error with running TaylorDiagram

Open fghiami opened this issue 2 years ago • 3 comments

When I run TaylorDiagram, setting type = "my stations name", it gives me the error:

Error in unit(0.5 * showr, "strwidth", list(right)) : no string supplied for 'strwidth/height' unit

Any solution for that?

fghiami avatar Aug 22 '22 19:08 fghiami

Hi fghiami,

Please provide a reproducible example and we can assist you.

We'd ideally need the data you're using and the code you're running. Then we can try to recreate your problem on our computers.

Cheers, Jack

jack-davison avatar May 26 '23 12:05 jack-davison

Actually, I have been able to recreate this quite simply;

openair::TaylorDiagram(openairmaps::polar_data,
                       "nox", "no2",
                       type = "site")
#> Error in unit(0.5 * showr, "strwidth", list(right)): no string supplied for 'strwidth/height' unit

Created on 2023-09-28 with reprex v2.0.2

This function is very long in the tooth and not one I use regularly; @davidcarslaw is this something you'd be able to investigate?

jack-davison avatar Sep 28 '23 10:09 jack-davison

Hi @jack-davison, I saw the discussion yesterday as I came into the same error, but for the "season" type, while trying to run this: TaylorDiagram( gathered, obs = "obs_tas", mod = "tas", group = "models", type = "season") Example of my data are attached here as csv file. I hope this helps. Thanks in advance! example_data.csv

Francisca-Z avatar Dec 12 '23 10:12 Francisca-Z