Displaying 7 results from an estimated 7 matches for "u2264".
Did you mean:
2264
2011 Jan 01
3
Plot symbols: How to plot (and save) a graphic symbols originating from a table
Dear all,
Please, I have a doubt regarding symbol plotting
with data originating from a table.
Please, see below:
I have a tab delimited file called table1.txt with 4 columns:
ypos animal var1 var2
5 cat gina <= lady gina \u2264 lady
7 dog bill >= tony bill \u2265 tony
9 fish dude <= bro dude \u2264 bro
#I then load in the data to R:
table1<-read.table("table1.txt", header=TRUE, sep="\t")
#if I take a look at the table I realize that \u2264 was replaced by \\u2264
table1
#So, if i try to p...
2010 Dec 05
1
"less than or equal to" glyph
If i insert \u2264 inside the text, like this
lsd_label <- "LSD (P \u2264 0.05) = "
the result is
"LSD (P = 0.05) = "
instead
"LSD (P ? 0.05) = "
how can i solve this problem?
Thanks.
--
View this message in context: http://r.789695.n4.nabble.com/less-than-or-equal-to-glyph-tp...
2013 Sep 26
1
Less than equal to symbol in ggplot2 legend text
Hello,
I am trying to add a less than equal to symbol in a ggplot2 legend text.
See sample code below. I have tried using the expression function and
\u2264. I also tried adding labels to legend.text under theme.
Neither of these 3 options work.
Please help,
Mahesh
++++++++++++++
Extra.column=ifelse(data[,covariate]>cutpoint,1,0)
Grp1 <- "\u2264 1.5"
Grp2 <- ">1.5"
Extra.column=factor(Extra.column,levels=c(0,...
2011 Jan 01
1
problem with postscript command
..."<="(less than or
equal to) is replaced by "..." (ellipsis)
how can I fix that?
postscript("plot1.ps", width = 22, height =
11.5,pointsize=24,paper="special",bg="transparent")
plot(NULL,xlim=c(1,10),ylim=c(1,10))
text(5,5,"\u2264")
dev.off()
I'm using windows vista, my system is in English, R v2.8.1
thanks, Victor
2011 Jan 02
1
Please, need help with a plot
...r2,y=1:11,table1$var1,pos=4)
title(x=15,y=5,expression("how to substitute the < = with the " <=
"symbol"),font=5)
Please, note that the data must come from a table (not manually fed in a
text command)
I received help yesterday and learned a fix using
\u2264, eval, parse, and sprintf? but the symbols generated by this fix are
not exported to an .EPS file
Kind regards,
Victor Faria Seabra, MD
2011 Mar 01
0
unicode&pdf font problem RESOLVED
...e been looking through the archive) problem with display unicode fonts in pdf document in R
If you can use the Cairo package to create pdf on Mac, it seems quite happy with pushing unicode characters through (probably still font family dependant whether it will display)
probstring <- c(' \u2264 0.2',' \u2268 0.4',' \u00FC 0.6',' \u2264 0.8',' \u2264 1.0')
Cairo(type='pdf', file='outputs/demo.pdf', width=9,height=12, units='in', bg='transparent')
plot(1:5,1:5, type='n')
text(1:5,1:5,probstring)
dev.off()
?Ca...
2012 Aug 09
1
Using unicode symbol has unexpected results in levels of factor object
...a call to ggplot() did not display the desired symbol, but an explicitly built legend using the same labels did.
Example (I am trying to get the less than or equal to symbol):
> .df <- data.frame(afp = c(0,0,1,1), time=c(0,2,0,1), surv=c(1, 0.5, 1, 0.4))
> afpLabels <- c("AFP \u2264 16", "AFP > 16")
> afpStrata <- factor(.df$afp, labels=afpLabels)
> afpStrata
[1] AFP ? 16 AFP ? 16 AFP > 16 AFP > 16
Levels: AFP = 16 AFP > 16
The first level is reported as "AFP = 16".
> levels(afpStrata)
[1] "AFP ? 16" "AFP > 1...