Displaying 20 results from an estimated 22 matches for "graphicsannot".
2008 Feb 05
2
Error in grid.text after tcltk package loaded
...0,1, by = .001))
## End R Code
The graphic draws to my X11 device, however, when I try to move the X11
R Graphics Device window with my mouse and 'drop' it somewhere by
releasing the mouse button, I get errors like the following:
> Error in grid.Call.graphics("L_text", as.graphicsAnnot(x$label), x$x,
: invalid color name
> Error in grid.Call.graphics("L_text", as.graphicsAnnot(x$label), x$x,
: REAL() can only be applied to a 'numeric', not a 'NULL'
> Error in grid.Call.graphics("L_text", as.graphicsAnnot(x$label), x$x,
: VECTOR...
2012 Jun 04
1
X11 font error on headless server running Xvfb
I am trying to run an R script to create a .png file containing a tree map on a headless Linux server using Xvfb. When I try to run tmPlot, I get the following errors and warnings:
Error in grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 1 at size 9 could not be loaded
Calls: tmPlot ... <Anonymous> -> widthDetails -> widthDetails.text -> grid.Call
In addition: Warning messages:
1: In grid.Call.graphics(L_text, as.graphicsAnnot(x$labe...
2008 May 01
1
Locale problem with umlauts in factor levels in 2.7.0 (patched) from grid or lattice
...that there are a few locale-changes in R 2.7.0, but I could not
easily
locate who's at fault
Dieter
library(lattice)
dt = data.frame(x=rnorm(100),y=1:100,levs= as.factor(c("Gru","Gr?")))
stripplot(x ~ y|levs, data = dt)
#Error in grid.Call.graphics("L_text", as.graphicsAnnot(x$label), x$x, :
# invalid input 'Gr?' in 'utf8towcs'
># Works
as.graphicsAnnot(as.factor(c("Gru","Gr?")))
R version 2.7.0 Patched (2008-04-30 r45572)
i386-pc-mingw32
locale:
LC_COLLATE=German_Germany.1252;LC_CTYPE=German_Germany.1252;
LC_MONETARY=Ger...
2012 Jun 05
0
ggplot2, grid graphics, x11(), windows(), and device fonts
...18, base_family = "")
print(p2)
The warnings are:
There were 22 warnings (use warnings() to see them)
>
> warnings()
Warning messages:
1: Removed 1 rows containing missing values (geom_point).
2: Removed 1 rows containing missing values (geom_path).
3: In grid.Call(L_textBounds, as.graphicsAnnot(x$label), ... :
Font family not found in Windows font database
4: In grid.Call(L_textBounds, as.graphicsAnnot(x$label), ... :
Font family not found in Windows font database
... snip ... # repeat same warning
22: In grid.Call.graphics(L_text, as.graphicsAnnot(x$label), ... :
Font family...
2016 Jul 20
2
Fuente (Tahoma)
Hola.
Estoy logrando sacar un gráfico para una presentación en ggloot2 y me está
quedando bastante bonito! Pero, tengo es problema con las fuentes:
Warning messages:
?>?
1: In grid.Call(L_textBounds, as.graphicsAnnot(x$label), ... :
?>?
font family not found in Windows font database
?etc.?
?que proviene de
> theme_minimal(base_size = 14, base_family = "Tahoma") +
?La verdad es que no quisiera renunciar a la Tahoma. ¿Tengo alguna forma de
incluirla en el Win font db que menciona el R? ¿Es un p...
2007 Jul 16
2
substitute and expression
...ive the same results:
> plot(1:10, main = expression(alpha == 1))
> do.call(plot, list(1:10, main = expression(alpha == 1)))
But not these two:
> plot(1:10, main = substitute(alpha == a, list(a = 2)))
> do.call(plot, list(1:10, main = substitute(alpha == a, list(a = 2))))
Error in as.graphicsAnnot(main) : object "alpha" not found
(as a consequence, xyplot(..., main = substitute(alpha)) doesn't
currently work.)
On the other hand, this works:
> foo <- function(x) plot(1, main = x)
> foo(substitute(alpha))
I'm not sure how to interpret ?plotmath; it says
If...
2009 Apr 15
1
savePlot error when type = "eps" or "wmf"
Hello,
When I use savePlot(filename="xy",type="eps") or
savePlot(filename="xy",type="wmf") , I get the following error:
Error in grid.Call("L_textBounds", as.graphicsAnnot(x$label), x$x, x$y, :
Polygon edge not found (zero-width or zero-height?)
This doesn't occur when I change the type to "jpeg" or "bmp". Can anyone
explain what is going on and how I can fix it? Your help is much
appreciated,
James
--
View this message in context: ht...
2017 Jun 21
1
encoding/locale problem with ssh -X
Hi all,
I am struggling with remote R sessions and a (I suspect) locale related
encoding problem: Using the X11 device (X11forwarding enabled),
whenever I try to plot something containing umlauts using ggplot2, I am
seeing sth like
,----
| Error in grid.Call(L_stringMetric, as.graphicsAnnot(x$label)) :
| invalid use of -61 < 0 in 'X11_MetricInfo'
`----
Using base graphics is fine as is plotting to another device (pdf, say).
Here is some code to reproduce:
,----
| plot(1:10, 1:10, main = "gr??e")
| ## this works
|
| library("ggplot2")
| qplot(1:10,...
2008 Mar 26
1
Adding name labels to x-axis of matplot
...atplot(as.matrix(nonormexpr),pch=16,col=c(rep(1,length(left)),rep(2,length(right))),cex=0.4)
The only thing is that the x-axis has numbers 1 ... 10, whereas I would
like to give them the names of the genes. I have tried using the
"labels" parameter but I get:
Error in axis(side, at, as.graphicsAnnot(labels), tick, line, pos,
outer, :
'labels' is supplied and not 'at'
Any ideas? Is there are a more appropriate plot type?
--
**************************************************************
Daniel Brewer, Ph.D.
Institute of Cancer Research
Molecular Carcinogenesis
Email:...
2010 Dec 01
1
Font family not found in Windows font database
...generating plots on both Windows and OS X where I need to guarantee that the font used is Arial. In my plot command I specify 'fontfamily="Arial"'. The problem is that on Windows I'm getting the following warning:
Warning message:
In grid.Call.graphics("L_text", as.graphicsAnnot(x$label), x$x, :
Font family not found in Windows font database
Here is my plot call. I have not included supporting code, as I don't believe it's necessary:
graph<-barchart(3.7,xlim=c(0,10),main="",xlab="",
aspect=.1,
col=rgb(21,101,112,maxColorValue=255),scale...
2017 Oct 13
1
[FORGED] can't print ggplot with Chinese characters to pdf files
...print the
> figures to pdf file by "marrangeGrob" command, which is in the package
> "gridExtra". Error message after I type "ggsave(......)" (last line of the
> program):
>
> "Saving 7.47 x 5.15 in image
> Error in grid.Call.graphics(L_text, as.graphicsAnnot(x$label), x$x, x$y, :
> invalid font type
> In addition: There were 50 or more warnings (use warnings() to see the
> first 50)"
>
> How can I install the font so that I can see the figures on the pdf files?
> Some information that may be useful:
> (1) If I use the Eng...
2017 Oct 12
2
can't print ggplot with Chinese characters to pdf files
...t; on my mac, but I can't print the
figures to pdf file by "marrangeGrob" command, which is in the package
"gridExtra". Error message after I type "ggsave(......)" (last line of the
program):
"Saving 7.47 x 5.15 in image
Error in grid.Call.graphics(L_text, as.graphicsAnnot(x$label), x$x, x$y, :
invalid font type
In addition: There were 50 or more warnings (use warnings() to see the
first 50)"
How can I install the font so that I can see the figures on the pdf files?
Some information that may be useful:
(1) If I use the English ggtitle, there is no problem at...
2017 Oct 13
4
[FORGED] can't print ggplot with Chinese characters to pdf files
...uot; command, which is in the
> package
> "gridExtra". Error message after I type "ggsave(......)" (last
> line of the
> program):
>
> "Saving 7.47 x 5.15 in image
> Error in grid.Call.graphics(L_text, as.graphicsAnnot(x$label),
> x$x, x$y,? :
> ? ?invalid font type
> In addition: There were 50 or more warnings (use warnings() to
> see the
> first 50)"
>
> How can I install the font so that I can see the figures on the
> pdf fi...
2017 Oct 13
0
[FORGED] can't print ggplot with Chinese characters to pdf files
...res to pdf file by "marrangeGrob" command, which is in the package
>> "gridExtra". Error message after I type "ggsave(......)" (last line of the
>> program):
>>
>> "Saving 7.47 x 5.15 in image
>> Error in grid.Call.graphics(L_text, as.graphicsAnnot(x$label), x$x, x$y,
>> :
>> invalid font type
>> In addition: There were 50 or more warnings (use warnings() to see the
>> first 50)"
>>
>> How can I install the font so that I can see the figures on the pdf files?
>> Some information that may be us...
2007 Jul 19
1
substitute and expression (Peter Dalgaard)
...>
>>>>
>>>>
>>>>> plot(1:10, main = substitute(alpha == a, list(a = 2)))
>>>>> do.call(plot, list(1:10, main = substitute(alpha == a, list(a =
>>>>> 2))))
>>>>>
>>>>>
>>>> Error in as.graphicsAnnot(main) : object "alpha" not found
>>>>
>>>> (as a consequence, xyplot(..., main = substitute(alpha)) doesn't
>>>> currently work.)
>>>>
>>>> On the other hand, this works:
>>>>
>>>>
>>>>
>...
2017 Oct 16
0
[FORGED] can't print ggplot with Chinese characters to pdf files
...he
>> package
>> "gridExtra". Error message after I type "ggsave(......)" (last
>> line of the
>> program):
>>
>> "Saving 7.47 x 5.15 in image
>> Error in grid.Call.graphics(L_text, as.graphicsAnnot(x$label),
>> x$x, x$y, :
>> invalid font type
>> In addition: There were 50 or more warnings (use warnings() to
>> see the
>> first 50)"
>>
>> How can I install the font so that I can see the figures...
2023 Apr 08
0
Time to add is.formula() to 'stats'?
..."tskernel" "unsorted"
2. For which Y does as.Y() have no corresponding is.Y()?
[1] "Date" "POSIXct" "POSIXlt" "dendrogram"
[5] "difftime" "dist" "formula" "graphicsAnnot"
[9] "hclust" "hexmode" "octmode" "person"
[13] "personList" "roman"
3. For which Z does is.Z() just call inherits(., "Z")?
[1] "data.frame" "factor" "numeric_...
2008 Mar 22
2
intraday OHLC plot
I want to create a open/high/low/last plot of intraday data.
I try to use the function plotOHLC from the tsteries package. I create
my own multiple time series and then try to plot it.
raw Data Format (file eurusd2.csv):
"Date (GMT)" "Open" "High" "Low" "Last"
17-03-2008 00:00:00 1,5764 1,5766 1,5747 1,5750
17-03-2008 00:05:00 1,5749 1,5750 1,5741
2017 Oct 20
0
[FORGED] can't print ggplot with Chinese characters to pdf files
...he
>> package
>> "gridExtra". Error message after I type "ggsave(......)" (last
>> line of the
>> program):
>>
>> "Saving 7.47 x 5.15 in image
>> Error in grid.Call.graphics(L_text, as.graphicsAnnot(x$label),
>> x$x, x$y, :
>> invalid font type
>> In addition: There were 50 or more warnings (use warnings() to
>> see the
>> first 50)"
>>
>> How can I install the font so that I can see the figures...
2007 Aug 07
11
Positioning text in top left corner of plot
Simple question how can you position text in the top left hand corner of
a plot? I am plotting multiple plots using par(mfrow=c(2,3)) and all I
want to do is label these plots a), b), c) etc. I have been fiddling
around with both text and mtext but without much luck. text is fine but
each plot has a different scale on the axis and so this makes it
problematic. What is the best way to do this?