Displaying 20 results from an estimated 1000 matches similar to: "Partial italic in graph titles when looping"
2005 Jun 11
2
italic (PR#7932)
Full_Name: G. Grothendieck
Version: R version 2.1.0, 2005-05-14
OS: Windows XP
Submission from: (NULL) (216.59.254.207)
This code:
> plot(1:10)
> text(5,5,lab=expression(italic(22*"33")))
has the effect of italicizing 33 (which is a character string) but not 22
(which is not). I would have thought that both, not just 33, would be
italicized.
I had previously posted about this
2011 Feb 17
4
Find and replace all the elements in a data frame
Hi all,
I'm having a problem once again, trying to do something very simple. Consider
the following data frame:
x <- read.table(textConnection("locus1 locus2 locus3
A T C
A T NA
T C C
A T G"), header = TRUE)
closeAllConnections()
I am trying to make a new data frame, replacing "A" with "A/A", "T" with "T/T",
"G" with
2011 Jun 21
2
Italicize Greek symbols in axis
Hello there,
Is there any way to italicize Greek symbols such as mu in axis? From the help
files of mathematical anotations: "Note that bold, italic and bolditalic do not
apply to symbols, and hence not to the Greek symbols such as mu which are
displayed in the symbol font. They also do not apply to numeric constants.", it
seems that it cannot be done.
Thanks,
Bingzhang Chen
2010 Sep 16
3
Help with customizing a histogram figure
Hi all,
Please consider the following code:
require(plotrix)
l <- list(rnorm(50),rnorm(50,sd=2),rnorm(50,mean=3))
multhist(l)
I have two things I need help with:
(1) In the output, there are empty spaces on the x-axis. How would I eliminate
these spaces? I want a nice, smooth, empty-spaceless x-axis.
(2) How could I add tracing lines to each histogram? I am undoubtedly using the
wrong
2011 Jun 30
1
Italicized greek symbols in PDF plots
I know that this has been asked before in other variations but I just can't
seem to figure out my particular application from previous posts. My
apologies if I have missed the answer to this question somewhere in the
archives. I have indeed looked.
I am running Ubuntu 11.04, with R 2.12.1 and ESS+Emacs.
For journal formatting requirements, I need to italicize all the greek
letters in any
2010 Jun 18
1
Fitting a polynomial using lrm from the Design library
Hi all,
I am looking to fit a logistic regression using the lrm function from the Design library. I am interested in this function because I would like to obtain "pseudo-R2" values (see http://tolstoy.newcastle.edu.au/R/help/02b/1011.html).
Can anyone help me with the syntax?
If I fit the model using the stats library, the code looks like this:
model <- glm(x$trait ~ x$PC1 +
2010 Jun 16
2
Accessing the elements of summary(prcomp(USArrests))
Hello again,
I was hoping one of you could help me with this problem. Consider the sample data from R:
> summary(prcomp(USArrests))
Importance of components:
PC1 PC2 PC3 PC4
Standard deviation 83.732 14.2124 6.4894 2.48279
Proportion of Variance 0.966 0.0278 0.0058 0.00085
Cumulative Proportion 0.966 0.9933 0.9991 1.00000
How do I access the
2010 Oct 06
2
Pointing to a specific place on the x-axis with an arrow
Hi all,
I am trying to do something simple, but which is deviling me. I want to add an
up-arrow to the x-axis, pointing to a specific location on the axis. I want the
arrow to be as large as possible.
Here is where I'm at with my code:
#this part if from the ?plot example:
require(stats)
plot(cars)
lines(lowess(cars))
#I am trying to use mtext to add the arrow... but I don't know how
2011 Mar 31
1
Italicized title from index
Hi all!
I've written a handy script that uses a for loop to allow me to generate a
large number of figures and statistical outputs for a large dataset.
I am using indexing to retrieve a species name for the title of my graphs-
which worked fine. However, I need to italicize these species names.
I originally used the paste function, and had no problems with indexing:
*main=paste("Yield
2011 Apr 11
2
Plotting a quadratic line on top of an xy scatterplot
Dear Listserv,
Here is my latest in a series of simple-seeming questions that dog me.
Consider the following data:
x <- read.table(textConnection("temperature probability
0.11 9.4
0 2.3
0.38 8.7
0.43 9.2
0.6 15.6
0.47 8.7
0.09 12.8
0.11 9.4
0.01 7.7
0.83 8
0.65 9.3
0.05 7.4
0.34 10.1
0.02 4.8
0.07 9.1
0.6 15.6
0.01 8.4
0.9 9.6
0.83 8
0.12 8.4
0.01 8
0 5
0.11 9.7
0.41 7.4
0.05 9.4
0.09
2010 Sep 26
2
Splitting a data frame into several completely separate data frames
Hello again,
How do I split a data frame into smaller, completely separate data frames
(rather than separate data frames comprising a single "list")? Consider the
following data, and my coding attempt:
x <- read.table(textConnection("id type number
indv.1 bagel 6
indv.2 bagel 1
indv.3 donuts 10
indv.4 donuts 9"), header = TRUE)
closeAllConnections()
x.split <-
2017 Jul 04
2
italic font on cairo devices in R 3.4
Hi all,
I have the following problem: Since R 3.4.0, italic fonts rendered on
Cairo devices appear pixelated. Here's a minimal example:
cairo_pdf('test.pdf')
plot(1:10, ylab=expression(italic(test)))
dev.off()
The same problem occurs with bolditalic, but not bold. I am using Debian
Stretch. Several friends tried the same on their machines, another
Debian machine has the same
2017 Jul 04
2
italic font on cairo devices in R 3.4
Hi all,
I have the following problem: Since R 3.4.0, italic fonts rendered on
Cairo devices appear pixelated. Here's a minimal example:
cairo_pdf('test.pdf')
plot(1:10, ylab=expression(italic(test)))
dev.off()
The same problem occurs with bolditalic, but not bold. I am using Debian
Stretch. Several friends tried the same on their machines, another
Debian machine has the same
2006 Apr 28
6
Emphasis or Italic?
What's the difference between:
<em>emphasis</em> and <i>italicized</i>
and
<strong>strong</strong> and <b>bold</b>
It seems to subtle for my browsers.
The only "difference" I've been able to find is that according to the
O'Reilly book <strong> and <emphasis> are semantic tags, while <b> and <i>
2012 Apr 03
1
Italicize journal article in mid 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 plain?
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")
Thanks
--
View this
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
2017 Jul 07
2
italic font on cairo devices in R 3.4
Hi Ilia,
I'm running Arch Linux, R 3.4.0.
Here's my test.pdf from your minimal example: https://ptpb.pw/HxsA.pdf
It doesn't look pixelated to me...
Here's a post that I wrote when I solved my last font problem in R,
almost 2 years ago:
https://stackoverflow.com/a/40940331/5087283
I had to install some Microsoft font packages, which is sad, because
there are some perfectly
2017 Jul 07
2
[Rd] italic font on cairo devices in R 3.4
Hi Ilia,
I'm running Arch Linux, R 3.4.0.
Here's my test.pdf from your minimal example: https://ptpb.pw/HxsA.pdf
It doesn't look pixelated to me...
Here's a post that I wrote when I solved my last font problem in R,
almost 2 years ago:
https://stackoverflow.com/a/40940331/5087283
I had to install some Microsoft font packages, which is sad, because
there are some perfectly
2013 Jan 23
1
italic font for legend text when using expression function for symbols
Hello,
I'm trying to add a symbol (Delta) to plot legend with text using
"expression(paste())" but this disables the text.font that allows to use
bold or italic text.
as follows:
x=c(1:10)
y=c(1:10)
plot(x,y)
legend(1,10,legend=c("A","B","C",expression(paste(Delta, D))),
pch=c(24,18,17,16),cex=2,text.font=3,bty="n")
Any suggestion to
2003 Jul 21
2
bold AND italic as font in text()
Dear all,
Is it possible to somshow plot text as italic AND bold. I tried font=c(2,3)
in text(), but it doesn't work. It seems like the latter value is used.
Thanks in advance!
Sincerely,
Tord
-----------------------------------------------------------------------
Tord Sn?ll
Avd. f v?xtekologi, Evolutionsbiologiskt centrum, Uppsala universitet
Dept. of Plant Ecology, Evolutionary Biology