[Rd] Example in pdf() help file (PR#8083)
Erik.Jorgensen@agrsci.dk
Erik.Jorgensen at agrsci.dk
Mon Aug 22 09:05:47 CEST 2005
The example in the help file for pdf() plots the characters outside
the plotting area in this for loop:
for(i in c(32:255)) {
x <- i
y <- i
points(x, y, pch=i)
}
The following loop seems to be working as intended
for(i in c(32:255)) {
x <- (i-31)%%16
y <- (i-31)%/%16
points(x, y, pch=i)
}
As an extra observation, with code page ISOLatin2, the pdf-file fails to
open in Ghostview 4.7 using ghostscript 8.51. Error message below. In
Acrobat Reader 7.0 it opens without problems. It is quite possible that
it is the settings on my computer that causes the error,
but I include the dump of the error message, just in case anybody was
interested
Best regards
Erik Jørgensen
Danish Institute of Agricultural Sciences
--please do not edit the information below--
Version:
platform = i386-pc-mingw32
arch = i386
os = mingw32
system = i386, mingw32
status =
major = 2
minor = 1.1
year = 2005
month = 06
day = 20
language = R
Windows XP Professional (build 2600) Service Pack 2.0
Locale:
LC_COLLATE=Danish_Denmark.1252;LC_CTYPE=Danish_Denmark.1252;LC_MONETARY=Danish_Denmark.1252;LC_NUMERIC=C;LC_TIME=Danish_Denmark.1252
Search Path:
.GlobalEnv, package:lattice, package:methods, package:stats,
package:graphics, package:grDevices, package:utils, package:datasets,
Autoloads, package:base
-------------------
GSview 4.7 2005-03-26
AFPL Ghostscript 8.51 (2005-04-18)
Copyright (C) 2005 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Scanning PDF file
%GSVIEW_PDF_PAGES: 1 1
Displaying PDF page 1
%GSVIEW_PDF_PAGE: 1
%GSVIEW_PDF_MEDIA: [0 0 432 432]
%GSVIEW_PDF_ROTATE: 0
Loading NimbusSanL-Regu font from c:\gs\fonts/n019003l.pfb... 2291320
946479 1594968 288125 3 done.
Error: /typecheck in --lt--
Operand stack:
--dict:4/4(L)-- F2 1 --dict:5/5(L)-- --dict:5/5(L)--
--dict:15/16(ro)(G)-- --nostringval-- --nostringval-- 1
--nostringval-- 1 --nostringval--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
false 1 %stopped_push 1 3 %oparray_pop 1 3
%oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2
--nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- --nostringval-- --nostringval--
--nostringval-- --nostringval-- %array_continue --nostringval--
false 1 %stopped_push --nostringval-- %loop_continue
--nostringval-- --nostringval-- --nostringval-- --nostringval--
--nostringval-- --nostringval-- %array_continue --nostringval--
Dictionary stack:
--dict:1129/1686(ro)(G)-- --dict:0/20(G)-- --dict:79/200(L)--
--dict:105/127(ro)(G)-- --dict:251/347(ro)(G)-- --dict:21/24(L)--
--dict:4/6(L)-- --dict:20/20(L)-- --dict:10/13(L)--
Current allocation mode is local
pdf_page failed
More information about the R-devel
mailing list