similar to: mtext uses the typographical descender to align text

Displaying 20 results from an estimated 3000 matches similar to: "mtext uses the typographical descender to align text"

2011 Dec 09
1
Align expression and text in mtext()
Dear R-helpers, I have trouble aligning an expression with a subscript, and text, in margin text: par(mar=c(6,6,1,1)) b <- barplot(1:3) mtext(c("A","B","C"), at=b, side=1, line=1, cex=1.3) mtext(expression(italic(C)[a]~(more~text)), at=0, line=1, side=1,cex=1.3) As explained in the help files and elsewhere, I understand that the expression is aligned by the
2009 Oct 05
0
Help in the mtext function
Hi Can anyone please help me in understanding the utility of "padj" and "outer (logical)" values in the '*mtext function*' given below are the output I generated on using the below code which is different from the formula description on r help > par(mfrow=c(2,1),xpd=NA) > y1 <- rnorm(100) > plot(y1,ann=F,axes=F,type="l") >
2008 Aug 07
1
Mtext doesn't display characters in italic when I use a greek symbol
Following on from my previous mail! plot(1:10,1:10) mtext("title", side=3, adj=0, font=3, cex=1.5) This works as expected and puts the font in italics. tag <- "A)" suffix <- "genea::" plot(1:10,1:10) mtext(bquote(.(tag) ~ Delta * .(suffix)), side=3, adj=0, font=3, cex=1.5) Here, the font isn't in italics, it's normal. I presume this is some
2007 Sep 02
2
Different behavior of mtext
Dear R Users, I am quite surprised to see that mtext gives different results when it is used with 'pairs' and with "plot'. In the two following codes, it seems that the 'at' argument in mtext doesn't consider the same unit system. I would appreciate your comments on this issue. Sebastien ##### Pairs mydata<-data.frame(x=1:10,y=1:10) par(cex.main=1,
2013 Jan 07
1
Changing mtext direction, or using text for the margin?
Hi all, I have read through the archives, but can't find a solution to this problem. I need the text direction on "dependent B", plotted in margin 4, to go top to bottom (opposite what it is now). Here's some sample code: #plot with mtext example par(mgp = c(2,1,0), mfrow=c(2,2), las=1, mar=c(2,2,2,2), omi= c(0.5,0.2,0,0.2)) a<-1:10 b<-7:16 c<-21:30 plot(a~b,
2007 Aug 24
3
changing text direction of mtext
Hello, Does anyone know if it's possible to change the text direction of mtext? I'd like to use 'mtext(side=2)' but the text should be 'left-to-right'. I couldn't find an argument for that in the help files. Thanks for any suggestions Tobias -- View this message in context: http://www.nabble.com/changing-text-direction-of-mtext-tf4321931.html#a12307342 Sent from
2004 Aug 19
3
mtext adj= wrong with several las= (PR#7188)
Dear all, Our quite basic function mtext() does wrong adjustments in some parameter configurations. This gets obvious when using multi line texts: There is no way to properly adjust text perpendicular to axis 2, for example. Best Jens Oehlschl?gel m <- matrix(1:9, 3) colnames(m) <- c("several\nlines", "several\nlines", "several\nlines") par(mfrow=c(2,2))
2010 Apr 19
1
How to embed italic Greek letters in a eps file?
Hi, I need to add on a plot text containing italic Greek characters using the function mtext (i.e. I cannot use Hershey vectors). The characters are nicely displayed when the file is saved as png but not when saved as eps. See code below as example: #postscript('test.eps') png('test.png') plot(1,1, type = 'n') mtext(side = 3, line = 2,
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 Jan 18
2
How do I exactly align the right hand side of "mtext" relative to a plot device? Beyond "adj".
Hi, I have a problem with aligning text which I'm adding to a plot using "mtext". I would like to specify the position of the right hand end of the text string, relative to the device (in the left-right direction). I've been looking at the use of the argument "adj". But this can't be used to specify the rightmost point of the text. Neither does it specify exactly
2012 Apr 03
1
Mixed italic and non-italic in text
Hi, I need to italicize the journal in a citation but have thus far failed. How can I make 'Journal of Something' below italic but leave the rest? mtext( "See Author1 and Author2 (2007) , \"Title\", Journal of Something , pp. 1-50.", side = 3, outer = T, line=-0.75, cex = 0.7, at= 0.04, adj = 0, font = 1, family = "Times") -- View this message in
2001 Jul 13
1
Text in plots
Hi there, I've added some test to my plots with: > diff <- ma - m > mtext(substitute(Delta == that, list(that=diff)), side=3, adj=0, line=0, cex=0.8) Now I want to add a "V" and tried this: >mtext(substitute(list(Delta, italic(V)) == that, list(that=diff)), ...) but this plots a comma between Delta and V. How can I add Delta V without the comma? Thanks, Sven
2008 Dec 24
1
ggplot2's qplot() not rendering title descender
On my machine (Mac OS 10.5.6, R 2.8.1) the following plot is drawn such that a substantial portion of the descender of the title is covered by the plot: library(ggplot2) qplot(x=1:10,y=1:10,main='p q j g') -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University www.thatmike.com Looking to arrange a meeting? Do so at: http://www.timetomeet.info/with/mike/ ~
2011 Jul 29
2
Changing font type within y axis labels
I wish place the following axis label in such a manner that some of the text is plain and the scientific name is in italics (i.e. a mixture of two font types) Using plot: mtext("Total Landings of Pecten maximus (tonnes)",font,=3, side=2, line=3) makes everything italic, but how do I apply the font change to only "Pecten maximus"? Rgds Phil
2009 Apr 06
0
mtext problem - grainy and massive file size
Hi Team, I'm on a mac, 0SX 10.5.6, R 2.7.2. I consistently make pairs plots and use mtext() to put labels on top of the plot in the outer margin. All of a sudden, this text has become really grainy in the final product and is making huge files. I have no idea why this has just started happening. The only thing I've done lately is install the new version of GIMP and run the script to
2010 Apr 22
1
Multicolor main title in a plot or mtext
Dear R-users, the problem I'm facing today is to write a multicolor main title in a plot. I would like to have 3/4 colors to help people in the audience to visually realize what is what in a 4x2 plot array On top of each plot I would like to have two lines. The 1st line will indicate what is plotted The 2nd line will indicate a a reference Graphically speaking I would like a result similar
2011 Nov 15
1
Plot alignment with mtext
I would like the text plotted with 'mtext' to be alighned like it is for printing on the console. Here is what I have: > print(emt) ME RMSE MAE MPE MAPE MASE original -1.034568e+07 1.097695e+08 2.433160e+07 -31.30554 37.47713 1.5100050 xreg 1.561235e+01 2.008599e+03 9.089473e+02 267.05490 280.66734
2011 May 11
1
mtext text size (cex) doesn't match plot
Hi, I am using mtext instead of the ylab argument in some plots because i want to move it away from the numbers in the axis. However, the text in the X axis, for example: par(mar=c(5, 5.5, 4, 2)); plot(data, main="plot name", xlab= 'X axis', ylab="", font=2, cex.lab=1.5, font.lab=2, cex.main=1.8); mtext('Y axis', side=2, cex=1.5, line=4,
2013 Feb 18
2
mtext unicode failure
Readers, How to solve this unicode input error please? > postscript("~/tmp/test.eps",width=100/25.4,height=100/25.4,horizontal=FALSE,onefile=TRUE,paper="special") > testx<-seq(1:5) > testy<-seq(1:5) > plot(testy~testx) > mtext('text (O?)\n more text',side=3,line=1) Warning messages: 1: In mtext("text (O?)\n more text", side = 3, line =
2012 Feb 29
1
Computing line= for mtext
I want to right-justify a vector of numbers in the right margin of a low-level plot. For this I need to compute the line parameter to give to mtext. Is this the correct scalable calculation? par(mar=c(4,3,1,5)); plot(1:20) s <- 'abcde'; w=strwidth(s, units='inches')/par('cin')[1] mtext(s, side=4, las=1, at=5, adj=1, line=w-.5, cex=1) mtext(s, side=4, las=1, at=7,