I suggest strwidth() [Off Topic]
Hi ElMaestro,
I see. You create the plot first and then
❝ I have a dynamic text s. I am going to put it on a plot. But I need to know if s at a given set of parameters and setting fits onto the plot within a width of dx units on the horizontal axis as one line.
I see. You create the plot first and then
strwidth(s)
and strheight(s)
will give you what you need.—
Dif-tor heh smusma 🖖🏼 Довге життя Україна!
Helmut Schütz
The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
Dif-tor heh smusma 🖖🏼 Довге життя Україна!
Helmut Schütz
The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
Complete thread:
- text function in R, how to get an idea of width? ElMaestro 2022-04-24 19:09 [Off Topic]
- Help is on the way Helmut 2022-04-24 22:24
- The width of text is important, not the rectangle ElMaestro 2022-04-25 04:20
- I suggest strwidth()Helmut 2022-04-25 09:26
- The width of text is important, not the rectangle ElMaestro 2022-04-25 04:20
- Help is on the way Helmut 2022-04-24 22:24