Displaying 20 results from an estimated 10000 matches similar to: "Specifying fonts in R"
2005 Jul 26
1
problem with Hershey fonts
This was reported to me by a colleague in China, so I may not be
reproducing exactly what they are seeing (which I suspect is rw2011), but
this is what I see:
> version
_
platform i386--netbsdelf
arch i386
os netbsdelf
system i386, netbsdelf
status
major 2
minor 1.1
year 2005
month 06
day 20
language R
> help(Hershey)
:
:
If the 'vfont' argument
2000 Jul 03
1
How to specify fonts
In Splus, if I wanted to use Bookman-Demi instead of the default
Helvetica, I would specify font = 18 as a graphical parameter for a
postscript printer.
In R it seems font can take only the values 1 to 4 which change only
the style but it's still Helvetica. There's some great flexibility
using Hershey vector fonts, but it appears they are all mono-spaced.
I wish to use proportional
2002 Mar 12
2
How to get special (Hershey) font symbols into plot axis labels?
Dear R experts-
I'm running R 1.2.3 (2001-04-26) on Linux.
I need to get special symbols, such as a circle with a dot in it
as used to indicate Solar units in astronomy, into my plot axis labels.
How can I do this?
Using the R documentation on the Hershey font sets, one can plot
a Solar symbol within the world coordinates of a plot like this:
>plot(1:10,1:10)
2008 Jun 19
4
Controlling the length of line with abline(lm())
Hi
I just realized that when I use linear regression to draw a line through my
data points with something like the following:
abline(lm(y ~ x))
the length of the line is infinite, i.e., the line goes beyond the smallest
and the largest data values. This seems not very right to me (not to mention
it looks unaesthetic). I do not mean to imply that the straight-line
behavior of my system is
2008 Jun 10
3
Plotting multiple continuous lines with symbols
Hi,
I am trying to plot multiple lines on one plot such that all lines are of
the same color (black) and continuous. I need to distinguish these multiple
plots from each other by using different symbols (I am using pch=). However,
all my lines are broken on both sides of the symbols. This unfortunate (and
unsightly) behavior seems to be the default. In my search of the help
archives for R over
2009 Dec 05
1
R packages and assess to data in packages
Hi Everyone,
I have two very basic questions and would appreciate your help.
1. I would like to see/access the data that comes with a given R package by
using a function like read.table(). For example, I just installed car
package from CRAN. I know that somewhere within the package, there is
Duncan.txt file. I would not only like to look at it from file browser (or
using ls command in shell) but
2010 Dec 19
1
Hershey fonts and substitute()
Hello R users,
I am new to R, so this may be a very stupid question. I need to
subscript the dotted circle (Hershey escape sequence "\\SO") to a
string. I tried using
text(.5,.5,substitute( R[disk] == 5 R["\\SO"] ) )
but it turns out to be a syntax error.
Do you have any suggestion?
Thanks
Gaetano
2008 Jun 04
2
Superscript/Subscript in main title
I have been trying to figure out how to get superscript/subscript in the
main title for a plot. I have tried various approaches and suggestions but
none of them work. I am trying to get the following as the main title of my
plot:
Emission of CO2 with time
(but note that 2 is subscript.)
I have tried
plot(main="Emission of C"expression(O[2]) "with time")
and I get error
2008 Jun 18
1
Help with axis labels
Hi
I have patched together (from various sources) the following code to get
semi-logarithmic plot. Unfortunately, my labels come out also at
intermediate places between 10^2, 10^3, 10^4 etc. Since I put the code
together from various sources and do not understand fully how the code is
working, I have not been able to get rid of the labels like 10^1.69897,
10^2.69897 etc. I would appreciate if
2000 Jul 17
3
Fonts and Line widths
Hi All R guru's,
A couple of simple questions which I cannot find answers to in "an
introduction to R" or in the reference manuals.
I am running R on Win95, and have plotted up quite a nice box and
whisker plot:
char<-read.table("n:/reddinm/grifpr~1/survey/char.txt")
attach(char)
boxplot(Al,Fe,OC,pH, range=0,xaxis=FALSE,
ylab="Proportion of Unirigated
2009 Nov 15
1
Help with unstack() function
Hi Everyone,
I am trying to understand the unstack() function but after struggling for
two days, I have given up. More specifically, I am trying the exercises at
the end of Chapter 1 of Data Analysis and Graphics Using R by Maindonald
and Braun, 2nd ed. Exercise 18 (p. 41) asks to unstack the Rabbit data frame
from the MASS package to get a certain data frame that is shown in the
exercise.
2000 Oct 04
1
Hershey Fonts, PNG, SVG, .. graphics formats
I wonder if we couldn't just use the PNG , SVG, support from the
GNU plotutils
from which we already have the Hershey scalable vector fonts [-> help(Hershey)]
The new plotutils (July 2000) do support these (and will probably even
better in the future, i.e., we can build on others people free software.
Paul [who built "Hershey" into R], do you think this path is worth pursuing?
2007 Jan 03
2
Hershey fonts for musical notation?
Hi,
I'd like to know if it is possible to use Hershey vector fonts to create very primitive musical notation.
If I can hang some whole notes on these lines
X11()
plot(0,0, xlim=c(0,10), ylim=c(0,10))
# Staves:
for (i in c(seq(from=2,to=2.8,by=0.2),seq(from=4,to=4.8,by=0.2)))
{
abline(h=i)
}
it is enough.
Best wishes,
Atte Tenkanen
University of Turku, Finland
2005 May 24
1
How to get special (Hershey) font symbols into plot axis labels? [Revisited]
Dear R users,
I would like to use sub- and super-script in axis labels. I assume this
is best done using Hershey symbols. When trying to find information on
using Hershey font symbols in axis labels, I came across the following
discussion thread:
http://maths.newcastle.edu.au/~rking/R/help/02a/1857.html
Have Hershey font implementations moved on since then?
Thanks,
Sander.
--
2007 Apr 28
3
Perpendicular symbol in plotmath?
Hey,
Does anyone know of an equivalent to the LaTeX \perp (perpendicular)
symbol for adding to R plots? Parallel is easy enough ("||"), but I
haven't been
able to find a way of adding perpendicular. The plotmath documentation
doesn't mention how to do it, so I'm inclined to think that it doesn't
exist - but surely there must be some way of achieving the desired
result,
2010 Oct 04
1
Error message with scan() function
Hi Everyone,
I am new R user and am trying to learn by reading the online manual "An
Introduction to R" from the R web site. I am trying to practice using the
scan() function as explained in the manual. For this I first created three
vectors (one a character vector and two numeric one) and saved file
"input.dat" in my working directory as:
> label <- c("Bill",
2009 Oct 25
2
Help with history() in Emacs/ESS
Hi Everyone,
I am a beginner running R 2.9.2 under Ubuntu and typically use Emacs w/ESS.
However, I am confused with history() command. When I issue command
history() in Emacs within an R session, this is what get:
> history()
Error in savehistory(file) : no history available to save
Similarly, history(max=10) command gives the same error message.
However, there is this In/Out Menu in the
2004 Feb 04
2
Latin 2 encoding + fonts
Hi,
In the FAQ I read about options to specify different fonts than the default
ones for the console (in the file Rprofile) and for the graphical output
(Rdevga). I would however like to replace Latin 1 with Latin 2 enconding for
both (console and graphical) output in Windows and just graphical output in
Linux.
I guess it is possible but I did not find the way.
How can I use the fonts
2000 Dec 08
1
Sans Serif Fonts?
Hi All,
I am preparing a few plots for publication. Unfortunately the journal
requires figures to have all text in a sans serif fonts.
I realise that there is support for the use of Hershey vector fonts in the
function TEXT,
but how do I get the text on axes to be sans serif?
For example, the labels and axis values produced from this line of code:
plot(SolPC, SorbPC, ylab="Sorbed P
2010 Jan 12
2
Placing eps files from R into Adobe InDesign documents: specifying fontfamily
This is a solution I am posting for a problem that others may have.
If you want to:
1. Place lattice graphics from R into an Adobe InDesign document, and
2. Use the export as eps function in R to maximize resolution (it is much
better than exporting as a metafile or bitmap), and
3. Use long strings of text in your titles or captions or to label your
axes.
Then you will have problems because: