Displaying 20 results from an estimated 3000 matches similar to: "How to get special (Hershey) font symbols into plot axis labels? [Revisited]"
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
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)
2005 Feb 16
5
Repeating grey scale in graph?
Dear R users,
Could somebody tell me why the grey color ramp is repeated in this
graph, eventhough the ramp values go from 0 to 1? I must be missing
something obvious, but I can not see it!
z <-
c(0.064329041,0.117243316,0.161565116,0.19923015,0.231642175,0.259835539,0.284571226,
0.038507288,0.094184749,0.140959431,0.180803984,0.215159105,0.245096084,0.271412845,
2005 Jun 10
2
Replacing for loop with tapply!?
Dear all,
We have a large data set with temperature data for weather stations
across the globe (15000 stations).
For each station, we need to calculate the number of days a certain
temperature is exceeded.
So far we used the following S code, where mat88 is a matrix containing
rows of 365 daily temperatures for each of 15000 weather stations:
m <- 37
n <- 2
outmat88 <- matrix(0,
2004 May 17
1
Plotting Time against Date for time series data?
Dear all,
I have a data set containing GPS fixes of animal locations. To check that
the GPS's are working properly, I would like to plot the time of the fixes
(y-axis) against the date of the fixes (x-axis). If all works well, the
plot should show four regular fixes per day. The x-axis should be labelled
with month/year (i.e. 11/04) and the y-axis by hour from 00 to 24. I would
like to
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
2005 Aug 15
3
How to repeat code snippet for several variables in a data frame?
Dear all,
I have a data frame containing the results of an experiment. Like this:
a<-seq(1,4,by=1)
b<-seq(1,2,by=1)
test<-expand.grid(b,a,a)
colnames(test)<-c("replicates","bins", "groups")
test$abc <- rnorm(32)
test$def <- rnorm(32)
test$ghi <- rnorm(32)
test
The following code snippet aggregates the data for one variable and then
draws a
2005 Feb 18
3
Hosting a R Graph Gallery?
Dear R users,
Following some of the recent questions and discussions about the R
plotting abilities, it occurred to me again that it would be very
valuable to have an R graph gallery.
Eric Lecoutre made a very nice example in:
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre/stats/fichiers/_gallery.pdf
It would be very useful to many beginners, but probably also advanced
users of R, to have an
2010 Jan 15
1
What is the newline escape sequence when using the Hershey fontfamily?
Hello!
The question is simple: What is the escape sequence for a new line when
using Hershey fonts? I obviously tried '\n' but it didn't work (see the
sample below). I looked at 'demo(Hershey)' but all it only shows escape
sequences for printable characters.
The sample I've been using to try to find the escape sequence is below.
You can comment or un-comment the
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
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?
2005 Jun 03
2
How to 'de-cross' a table?
Dear R users,
I have received a table in the following format:
id a b c1 c2 d1 d2
1 1 1 65 97 78 98
2 1 2 65 97 42 97
3 2 1 65 68 97 98
4 2 2 65 97 97 98
Factors of the design are: a, b, and e, where e has levels c and d. The
levels c and d then have 2 replicates (r) each.
Now I would like to get:
id a b e r value
1 1 1 c 1 65
2 1 1
2005 Apr 22
1
Help needed with lattice graph!
Dear R users,
If I manage to sort out this graph, it is certainly a candidate for the
new R graph gallery
(http://addictedtor.free.fr/graphiques/displayGallery.php)!
I created the following lattice graph:
library(lattice)
tmp <- expand.grid(geology = c("Sand","Clay","Silt","Rock"),
species =
2005 May 04
1
Plotting means and confidence intervals by group factor using lattice graphics?
Dear R graphics gurus,
Another question about lattice graphics. This time I would like to plot
means and confidence intervals by group factor in a lattice graph. I can
not find any working lattice examples. Maybe a custom panel function is
the answer, but that is a bit beyond me for now.
The individual plots within the lattice graph could look like this:
# Example with confidence intervals
2005 May 27
3
Soil texture triangle in R?
Dear R users,
has anybody made an attempt to create the soil texture triangle graph in
R? For an example see here:
http://www.teachingkate.org/images/soiltria.gif
I would like to get the lines in black and texture labels in gray to
allow for plotting my texture results on top.
Any examples or suggestions are very welcome!
Thanks in advance,
Sander.
--
2005 May 13
5
Conflict between xtable and Hmisc when using Sweave?
Dear R users,
The Sweave code below runs fine, as it is. However, an error occurs when
the line 'library(xtable)' is uncommented:
Error: chunk 1
Error in "label<-"(`*tmp*`, value = "month") :
no applicable method for "label<-"
Is anybody aware of this and knows a workaround?
Thanks,
Sander.
*******************
2008 Jan 22
1
Hershey Felder, The Secrets About Musical Instruments And Physics
Hershey Felder, The Secrets About Musical Instruments And Physics
Every sound produced by a musical instrument has a physical explication, the
way instruments are created and the type of materials that are used define
in a unique way the resulting sound. The sound wave is a transfer of energy
that doesn't imply matter. Within a more theoretical approach sounds are
Mechanical Longitudinal
2011 Oct 25
1
R fails when converting units using Hershey-Fonts
I run into some problems when trying to convert units using Hershey-Fonts: R chrashes.
> library(grid)
> label <- "some text"
> pushViewport(viewport(gp=gpar(fontfamily="HersheySerif")))
> convertHeight(stringHeight(label), unitTo="mm")
*** caught segfault ***
address 0xadc838f8, cause 'memory not mapped'
Traceback:
1:
2003 Apr 28
1
Compiling R-1.7.0 on Mac OS X
I'm having trouble compiling the latest version of R (1.7.0) under OS
(10.2.5), after running ./configure then make, building fails on the
file main/Rdynload.c with the following error message.
gcc -I../../src/extra/pcre -no-cpp-precomp -I. -I../../src/include
-I../../src/include -I/sw/include -DHAVE_CONFIG_H -g -O2 -c
Rdynload.c -o Rdynload.o
Rdynload.c: In function
2005 Feb 15
2
special symobol / character
Hi all,
Is it possible to add a permil (or per mille) symbol to
an R plot (I couldn't find this symbol under demo(Hershey) or
the plotmath information).
In some ascii tables it is symbol no. 137.
cheers,
Matt.
[[alternative HTML version deleted]]