similar to: need help with plotmath and/or plotting unicode characters

Displaying 20 results from an estimated 10000 matches similar to: "need help with plotmath and/or plotting unicode characters"

2010 Aug 01
3
Constructing arguments for plotmath
Colleagues, I am encountering difficulty adding formatted text to a graphic. Specifically, I want to add a superscript in the middle of a text string but I would like to format the text string on the fly. The commands: plot(1,1) ARG <- bquote('TEXT'^'\u00ae') mtext(ARG, line=-2, side=1) yield the desired output. However, my goal is to paste together a string, then pass
2023 Jan 16
3
Printing special characters
R 4.2.2 OS X Colleagues A file that I have read includes strings like this: "EVENT ? 30 sec" When I include the string in a graphic using: mtext(STRING, ?) it appears as: "EVENT ... 30 sec" Is there a simple work-around (short of reformatting all the strings, then using plotmath)? Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone / Fax:
2023 Jan 16
1
Printing special characters
Use the Cairo PDF device? On January 16, 2023 12:18:48 AM PST, Dennis Fisher <fisher at plessthan.com> wrote: >R 4.2.2 >OS X > >Colleagues > >A file that I have read includes strings like this: > "EVENT ? 30 sec" >When I include the string in a graphic using: > mtext(STRING, ?) >it appears as: > "EVENT ... 30 sec" > >Is there a
2023 Jan 16
1
Printing special characters
?s 08:31 de 16/01/2023, Jeff Newmiller escreveu: > Use the Cairo PDF device? > > On January 16, 2023 12:18:48 AM PST, Dennis Fisher <fisher at plessthan.com> wrote: >> R 4.2.2 >> OS X >> >> Colleagues >> >> A file that I have read includes strings like this: >> "EVENT ? 30 sec" >> When I include the string in a graphic
2010 Jul 20
1
Registered / trademark signs
Colleagues, What is the easiest means to embed a: ? (registered) or ? (trademark) sign in text in a graphic. I would like to use mtext and avoid plotmath, if possible. Ideally, the sign should be superscripted but I can easily sacrifice that. Optimally, I need a solution that works in both OS X and Windows (? XP) and with R versions ? 2.11 Thanks in advance. Dennis Dennis Fisher MD P <
2023 Jan 16
1
Printing special characters
>>>>> Rui Barradas >>>>> on Mon, 16 Jan 2023 08:46:43 +0000 writes: > ?s 08:31 de 16/01/2023, Jeff Newmiller escreveu: >> Use the Cairo PDF device? >> >> On January 16, 2023 12:18:48 AM PST, Dennis Fisher >> <fisher at plessthan.com> wrote: >>> R 4.2.2 OS X >>> >>>
2010 Mar 27
1
string width calculation
Colleagues, I am trying to create a PDF document in which I use margin text with two different fonts. The resulting text might be: XXXXXyZZZ where X and Z are one font and Y is the other. My plan was to do this in the following manner: mtext("XXXXX ZZZ", cex=2, adj=0.5, family=SOMEFONT) mtext("Y", cex=2, adj=??, family=DIFFERENTFONT) My question regards how to calculate
2010 Jan 23
1
Failure to produce italics in jpeg
Colleagues, Using R 2.10.1 in OS X (Snow Leopard), I created JPEG documents that were intended to include italicized text. In the JPEG versions, the italics appear in bold-face. The identical code (except for the call to the device) yields italics in PDF. A minimal example is: PDF version: > pdf("plot.pdf") > plot(1,1) > mtext(bquote(italic(P) < .(0.005))) >
2012 Sep 02
2
Impact of cex changing as a function of mfrow
R 2.15.1 OS X (MLion) Colleagues, I am aware that changes in mfrow / mfcol in par() affect cex (from help: In a layout with exactly two rows and columns the base value of ?"cex"? is reduced by a factor of 0.83: if there are three or more of either rows or columns, the reduction factor is 0.66). I generate a multipage PDF in which mfrow varies such that cex is impacted. This affect
2012 Aug 15
3
How to join two plotmath type expressions
If I have two variables set, one of which holds an expression, for example: > label <- 'Temperature' > unit <- expression(paste(degree,'C')) how can I join them together for use in mtext (or equivalent)? The following is conceptually what I want to do, but will obviously not work: > plot(0:1) > mtext(paste(label,unit)) Preferably, I would like this to work
2008 Apr 02
1
Trouble combining plotmath, bquote, expressions
I'm using R-2.6.2 on Fedora Linux 9. I've been experimenting with plotmath. I wish it were easier to combine expressions in plotmath with values from the R program itself. There are two parameters in the following example, the mean "mymean" and standard deviation "mystd". I am able to use bquote to write elements into the graph title like mu = mymean and R will
2009 Jun 03
1
Would like to add this to example for plotmath. Can you help?
Greetings: I would like comments on this example and after fixing it up, I need help from someone who has access to insert this in R's help page for plotmath. I uploaded a drawing http://pj.freefaculty.org/R/Normal-2009.pdf that is created by the following code http://pj.freefaculty.org/R/Normal1_2009_plotmathExample.R This will be a good addition to the plotmath help page/example.
2010 Jul 06
1
plotmath vector problem; full program enclosed
Here's another example of my plotmath whipping boy, the Normal distribution. A colleague asks for a Normal plotted above a series of axes that represent various other distributions (T, etc). I want to use vectors of equations in plotmath to do this, but have run into trouble. Now I've isolated the problem down to a relatively small piece of working example code (below). If you would
2010 Oct 11
1
grep triggering error on unicode character
Colleagues, [R 2.11; OS X] I am processing a file on the fly that contains the following text: XXX?? [email clients may display this differently -- the string is three X's followed by two instances of the letter a with an acute accent] I read the file with: X <- readLines(FILENAME) In this instance, the text of interest is on line 213. When I examine line 213, it reads: XXX\xe1\xe1
2010 Dec 12
1
Submissions that include an entire previous digest
Colleagues, Today's digest (Volume 94, Issue 12) contained an entire copy of Digest, Vol 94, Issue 11. It appears that an inconsiderate poster (Message 39 in Issue 12) received the digest and clicked reply, thereby including the entire digest in his/her submission (> 6000 additional lines of text). This made it difficult to scroll through the digest efficiently. At minimum, posters
2010 Mar 20
1
Printing Unicode characters in a PDF document
Colleagues, OS: OS X R: 2.10.1 I want a mu (?) to appear in text that is created using a PDF device. However, the ? does not appear as intended; instead, it is replaced by two dots. A minimal example is: > pdf("mu.pdf") > plot(1,1, type="n") > text(1,1, "\u3BC") > dev.off() The "text" command yields the following warning messages: >
2010 Feb 12
1
Identifying special characters in a text file
Colleagues R 2.10.1 on a Mac I read in textfiles using readLines, then I process those files, then I use R to execute another program. Occasionally those files contain characters other than letter / numbers / routine punctuation marks. For example, a bullet (option-8 on a Mac) triggers the problem. Although R can read and process those characters, the other program cannot so I would like to
2005 Nov 18
1
challenge: using 'subset = <computed>' inside function ..
I've been asked by someone else whom I originally taught `` to just work with substitute() and then all will be fine'' ... But it looks to me that I've been caught here. Is it possible to make this work along the way we thought it should? 1) Inside a function, say tst() with the 'formula' and a 'data' argument, 2) call another modeling function using
2009 Aug 12
2
Plotting sigma symbol with unicode and turning into pdf
Paul, You solution worked out really well when I ran my code in R. However, when I try to turn the plot into a pdf, the unicode string no longer seems to function and instead of the sigma symbol there are just two periods (See example code below). The following is the code working in the R environment just like I want it to look: set.seed(1) Data=rnorm(100,sd=10000) plot(density(Data))
2012 Apr 10
1
Rotating margin text
R 2.14.1 OS X Colleagues, I am making a graphic with two y-axes. I create the label for the right-side axis with: mtext(side=4, line=1, "Some text") The label is rotated 90° counterclockwise. I would prefer that it be rotated 90° clockwise. However, srt is not supported for mtext and las does not offer this option. Is there some other means to rotate the text string? Thanks in