similar to: use of UTF-8 \uxxxx escape sequences in function arguments

Displaying 20 results from an estimated 700 matches similar to: "use of UTF-8 \uxxxx escape sequences in function arguments"

2008 Jan 23
1
adjusting y axis labels in lattice plots?
Are there parameters that would allow adjusting y axis labels in lattice plots? E.g in the following simple example require(lattice) xyplot(rnorm(10) ~ 1:10, scales=list(alternating=2)) it would be nice to have the y axis labels adjusted to the right or at the decimal point instead of left adjustment. Thomas Zumbrunn -- Thomas Zumbrunn Institute of Zoology, University of Basel Vesalgasse
2007 Dec 07
1
x11() and Xinerama settings
Hello Since I changed my X11 settings to a Xinerama setup, calls to x11() result in windows with a width half the size of the one specified by the corresponding parameter. Furthermore, x axis labels are overlapping. Other devices (e.g. pdf()), are not affected by these distortions. Did anybody have the same problem, and if so, how did you solve it? ( I'm using openSUSE 10.3 on a x86
2009 May 20
2
arrangement of crowded labels
Dear R users I'm looking for algorithms that assist in spreading out crowded labels, e.g. labels of points in a scatter plot, in order to obtain a nicer visual appearance and better legibility. I'm probably just stuck because I didn't find the right key words for a successful search on the R websites or in the mailing list archives. Any hints are appreciated. Thomas Zumbrunn
2008 Jan 31
3
X11 device distortion (PR#10666)
Full_Name: Thomas Zumbrunn Version: 2.6.1 OS: GNU/Linux (openSuse 10.3 2.6.22.13-0.3-default) Submission from: (NULL) (131.152.125.199) With my particular X11 settings, the width to height ratio of the x11 device is distorted, with the width being half that of the height. This results in wrongly proportioned plots, wrongly positioned text etc. Other devices are not affected. I already asked
2009 Jun 02
1
lattice: horizontal alignment of labels in key
Dear R users I have problems horizontally aligning labels in keys of lattice plots when the labels make use of plotmath. Here's a self-contained example: dat <- data.frame(x = rnorm(10), y = rnorm(10), z = factor(rep(c("a", "b"), each = 5))) xyplot(y ~ x, dat, groups = z, auto.key = list(columns = 2, text =
2008 Dec 11
2
call lattice function in a function passing "groups" argument
I'm trying to use a lattice function within a function and have problems passing the "groups" argument properly. Let's say I have a data frame d <- data.frame(x = rnorm(100), y = c("a", "b")) and want to plot variable x in a densityplot, grouped by the variable y, then I would do something like densityplot(~ x, d, groups = y) If however I wanted to
2008 Mar 18
1
invalid \uxxxx sequence while trying to create a package
Greetings, R-Helpers: I am trying to build a package on WinXP, something that I have done before, but infrequently, and have recently updated both the Rtools and the version of R being used. My test case fails after successfully creating the compiled html files with this error message: . . . Created c:\DOCUME~1\CHARLE~1\LOCALS~1\Temp\Rbuild142865646\March18\chm\March18.chm, 41,494
2011 May 26
1
Is it possible to define a function's arguments via a wildcard in 'substitute()'?
Dear List, just out of pure curiosity: is it possible to define a function via 'substitute()' such that the function's formal arguments are specified by a "wildcard" that is substituted when the expression is evaluated? Simple example: x.args <- formals("data.frame") x.body <- expression( out <- myArg + 100, return(out) ) expr <-
2006 Aug 02
1
read.spss and umlaut
Hello When I read a SPSS *.por file with read.spss everything after a umlaut is missing: > library("foreign") > spssdaten <- read.spss("projets.por") > attr(spssdaten$PROJETX, "value.labels")[1:20] Bg Stammzellenforschung Bb 863 862 Bb
1999 Mar 14
2
y with diaeresis (PR#143)
[Not important for message below; in this moment link from CRAN to the 'R Bug Tracking system (http://blueberry.kubism.ku.dk/R)' is down (at least, I get a "The requested URL /R was not found on this server." message)] To display properly this message, you mailer must handle properly latin1 encoding. With other encoding, I suppose that the role played by 'y
2010 Jan 15
2
processing all files with certain extension in a directory
Hi all, I'm trying to process all files with a certain extension "*.ext" in a directory like this: > R --slave --args /my/dir < dir_plot.r where I then I want to do something like: myarg <- commandArgs() inputdir <- myarg[length(myarg)] print(inputdir) "for file with extension "*.ext in inputdir" do data = process.data(file) outfile =
2002 Dec 17
3
Changing "..." inside a function: impossible? desirable?
This is was something like a request for your comments, thoughts on the topic... Many of you will know that the "..." (aka \dots) argument is very useful for passing ``further graphical parameters'', but can be a pain when itself is passed to too many plotting functions inside your own function. An artificial example being myplot <- function(x,y, ...) { plot(0:1, 0:1,
2009 Jan 03
1
Equivalent of match for data.frame
Dear R-users, I am translating a S script into R and having some troubles with the match function. This function appears to work with vector and data.frame in S, but not in R, e.g.: a <- rep((1:4), each = 10) b <- rep((1:10), times = 4) mydf <- data.frame(a,b) myarg <- mydf[1,] match(myarg, mydf) # S returns 1 but R returns NA NA I guess one could use match(interaction(myarg),
2006 Nov 24
1
Missing values for S4 slots
Using R 2.4, the following fails: setClass("testc", representation(a="ANY")) makeC <- function(myarg) new("testc", a=myarg) makeC() -> Error in initialize(value, ...) : argument "myarg" is missing, with no default On the other hand, this is OK: f <- function(a) g(b=a) g <- function(b) if(missing(b)) "missing" else "valid
2003 Dec 01
0
No subject
8. You have join to this mail a text file with the few characters that don't = match. On Swat, it's easier. = I use Swat from my win98 box. When I write a share comment with some chara= cters, there are not translated properly inside smb.conf file. = When I read my smb.conf file, I noticed that for example a cp1252 characte= r like (0xC1) has been changed onto an ISO8859-15 character
2012 May 22
2
package grid: mirror grob objects along an axis
Hi everyone I'd like to flip grobs (grid graphical objects) along an axis, e.g. flip grobs horizontally or vertically. I couldn't find any hints, neither in the documentation nor by searching the web. Does anybody know how to achieve this? Cheers /thomas
2003 Mar 06
1
Proper way to document print( ) functions
Frequently we have a print method, say print.myclass, that has a variety of arguments. If in the .Rd file I say \usage{ \method{print}{myclass}(x, myarg) } I get a warning when running R CMD chk: * checking generic/method consistency ... WARNING print: function(x, ...) print.myclass: function(x, myarg) What is the proper way to handle this? Thanks -- Frank E Harrell Jr
2014 Apr 14
1
duplication regression (?)
Below is an example of output that changed as a result of r64970. I did not see any NEWS item suggesting this change is expected. Note that the example is contrived and I don't have a use case for it. I stumbled across it when playing with recent changes in R relating to duplication. Does the example use undefined syntax? ----- fn1 <- function(mylist) { fn1a <- function()
2006 Jun 27
2
UTF-8 and .Rd files
I have been converting to utf8 from latin1, and this gives me problems, some solved, but here is one unsolved: In my .Rd files, I have included '\encoding{UTF-8}' at the top. Despite this, the HTML help pages contains 'content="text/html; charset=iso-8859-1"', and my name is mangled. What can I do about this? I'm on Ubuntu (latest), R-2.3.1 Thanks, G?ran
2008 Mar 21
0
lattice: emulating the par(xaxs="i") behaviour
I tried to emulate the axis interval calculation behaviour of the traditional graphics system (with par(xaxs="i")) in lattice but couldn't find a flexible solution. Let's say a have a simple xyplot: x <- seq(0, 1, 0.01) xyplot(x^2 ~ x, type="l") I want to restrict the plotting region to the data range _and_ have axis labels over the full data range like this: