similar to: multiple colors within same line of text

Displaying 20 results from an estimated 1000 matches similar to: "multiple colors within same line of text"

2008 Apr 24
2
alternatives to RColorBrewer?
I've found RColorBrewer useful for its qualitative palettes, but wished that it could generate more than 12 qualitative palettes (e.g. with Set3). Any suggestions for alternative color palette generators that can handle e.g. 18 distinctive colors? (I'm aware of using rainbow(), but this doesn't generate enough distinct colors when the number of palettes is large). Thanks, Andrew
2007 May 29
2
trouble understanding why ...=="NaN" isn't true
I have the following data: > dataset[2,"Sample.227"] [1] NaN 1558 Levels: -0.000 -0.001 -0.002 -0.003 -0.004 -0.005 -0.006 -0.007 -0.008- 0.009 ... 2.000 However, I'm not sure why this expression is coming back as FALSE: > dataset[2,"Sample.227"]=="NaN" [1] FALSE Similarly: > dataset[2,"Sample.227"]==NaN [1] NA It seems that since
2007 May 29
2
looking for the na.omit equivalent for a matrix of characters
I have a matrix of characters (actually numbers that have been read in as numbers), and I'd like to remove the NA. I'm familiar with na.omit, but is there an equivalent of na.omit when the NA are the actual characters "NA"? Thanks, Andrew [[alternative HTML version deleted]]
2007 May 16
3
more woes trying to convert a data.frame to a numerical matrix
I have the following csv file: name,x,y,z category,delta,gamma,epsilon a,1,2,3 b,4,5,6 c,7,8,9 I'd like to create a numeric matrix of just the numbers in this csv dataset. I've tried the following program: sample.data <- read.csv("sample.csv") numerical.data <- as.matrix(sample.data[-1,-1]) However, print(numerical.data) returns what appears to be a matrix of
2007 Aug 23
1
in cor.test, difference between exact=FALSE and exact=NULL
Pardon my ignorance, but is there a difference in cor.test between exact=FALSE and exact=NULL when method=spearman? Take for example: x<-c(1,2,2,3,4,5) y<-c(1,2,2,10,11,12) cor.test(x,y, method="spearman", exact=NULL) This gives an error message, Warning message: Cannot compute exact p-values with ties in: cor.test.default(x, y, method = "spearman", exact = NULL)
2003 Jun 17
1
User-defined functions in rpart
This question concerns rpart's facility for user-defined functions that accomplish splitting. I was interested in modifying the code so that in each terminal node, a linear regression is fit to the data. It seems that from the allowable inputs in the user-defined functions, that this may not be possible, since they have the form: function(y, wt, parms) (in the case of the
2023 May 25
4
environments: functions within functions
Hi, I ran into a problem with S3 method dispatch and scoping while trying to use functions from the mixR package within my own functions. I know enough to find the problem (I think!), but not enough to fix it myself. The problem isn't really a package-specific problem, so I'm starting here, and will file an issue with the maintainer once I have a solution. Detailed explanation below, but
2000 May 10
4
openssl w/ rsaref openssh won't configure
I have openssl-0.9.5a and openssh-2.1.0. I configured ssl with rsaref and it passes the tests. When I configure ssh I get: ---- checking for OpenSSL directory... configure: error: Could not find working SSLeay / OpenSSL libraries, please install ---- it is failing RSA_private_decrypt function call. The RSA_generate_key seems to work (does not return null) but then goes on to fail at
2010 Feb 14
3
evaluate variable within expression - how?
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt. Name: nicht verf?gbar URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100214/4b41a017/attachment.pl>
2006 May 18
7
Server out to excel
How would one server out to excel a html table with the mime/content type application/vnd.ms-excel ? In PHP it would be something like ?php header("Content-Type: application/vnd.ms-excel"); ------ But how do I do this in rails? Cheers Glenn -- Posted via http://www.ruby-forum.com/.
2006 May 11
3
Textile/RedCloth and h() incompatible?
If a user enters the Textile-based code for an image, say: !>graphic.png! the textile() method will successfully render a right-float image. Now, if I want to escape the user''s text using h(), the ''>'' is turned into an &amp;. Obviously, the image then fails to render in a browser. Is there a work around for this? I guess what I''m really asking
2012 Jul 17
1
How to use a text in an object of class character position to create a vector with the text as name
Hello, >titletool<-read.csv("TotalCSVData.csv",header=FALSE,sep=",") > class(titletool) [1] "data.frame" >titletool[1,1] [1] Experiment name : CONTROL DB AD_1 >t<-titletootl[1,1] >t [1] Experiment name : CONTROL DB AD_1 >class(t) [1] "character" now i want to create an object (vector) with the name "Experiment name :
2018 Sep 28
4
Simple bash question
I am calling a bash script and passing in somestring that includes a "$" myscript "$plusmore" I want to assign in the myscript the $1 arg to something like MYTEXT="$1" when I do that I dont get what I'm expecting. if I do MYTEXT='$1' I still dont get what I'm expecting. On the first assignment of MYTEXT I do not want the "$" to be
2012 Dec 12
2
long margin text below lattice plot - how to wrap lines?
Hello, I've got a lattice plot and need to add text into the bottom margin of the plotting area (below the bottom legend). This seems to work in principle using grid.arrange, yet the text to be added is rather long. As a consequence, it gets clipped: require(lattice) require(grid) myplot <- xyplot(1~1) mytext <- textGrob("This is such a very very long text that it goes on forever
2005 Jan 06
2
autoscaling plot font size in Sweave output possible?
Hi, I was wondering if it's possible to have fonts in plots to be autoscaled to the same font size used by LaTeX in a surrounding Sweave document. Here's a short example in which the fonts of the first plot are barely readable: --8<------------------------schnipp------------------------->8--- \documentclass{article} \usepackage{graphicx} \newcommand{\mytext}{Some normal sized
2011 Aug 25
2
string manipulation
I R-users, I am trying to find the way to manipulate a character string to select a 4 digit number after some specific word/s. Example: mytext <- "I do not want the first number 1234, but the second number 5678" Is there any function that allows you to select a certain number of digits (in this case 5678) after a particular word/s (e.g., second number) Thank you for your help
2005 Nov 30
1
\dQuote{} in \code{} not processed
Just wondering if this is the expected behaviour. I was wanting to produce quoted text within \code{}, without manually entering the '"'. \dQuote{} seems advisable after reading the Writing R Extensions manual, so I tried \code{\dQuote{mytext}} expecting it to produce "mytext" in monospace font (with ' ' round it in the R help files) but it appears that
2019 Feb 13
3
Problem writing to ADS with cifs mounted windows share on Linux
Hi, We are facing difficulties writing to Alternate Data Streams (ADS) on a Windows CIFS mount on CentOS/RHEL Linux. Steps followed on both machine: -------------------------------------------- On RHEL(cifs.ko version: 1.68) 1. Created sample.txt file using vim with come content inside the Windows CIFS share mounted on linux. 2. Then wrote some content with “vim
2009 Mar 29
2
Burt table from word frequency list
Dear all, I have a word frequency list from a corpus (say, in .csv), where the first column is a word and the second is the occurrence frequency of that word in the corpus. Is it possible to obtain a Burt table (a table crossing all words with each other, i.e., where rows and columns are the words) from that frequency list with R? I'm exploring the "ca" package but I'm
2012 Sep 04
1
Changed PDC IP, all hell broke lose
I had to move my RedHat 5 box acting as a PDC to a new IP address. It is running samba 3.5.10. After the move, none of my windows or linux samba clients worked anymore. I tried rejoining some to the domain, but would get error Unable to find a suitable server Join to domain 'MRIRESEARCH' is not valid The old PDC IP address is 132.183.202.95 and nothing is at that IP anymore (for 4