similar to: [Q] Format of a plot axis label

Displaying 20 results from an estimated 20000 matches similar to: "[Q] Format of a plot axis label"

2006 Mar 06
2
[Q] BIC as a goodness-of-fit stat
Dear R-List I have a question about how to interpret BIC as a goodness-of-fit statistic. I was trying to use "EMclust" and other "mclust" library and found that BIC was used as a goodness-of-fit statistic. Although I know that smaller BIC indicates a better fit, it is not clear to me how good a fit is by reading a BIC number. Is there a standard way of interpreting a BIC
2006 Mar 28
2
[Q] How to make a multi-line title with expression()
Dear R-lister Could anyone know how to make a multi-line title for a plot with expression()? In my plot, the title should be writeen in two lines (because it is two long for one line) and it should use a mathematical expression. I tried to use "\n", but "\n" is ignored in expression() call: hist(diffChangeRequestHintsBeforeAnswering[,4], br = 50, xlab = "Skill Change in
2006 Oct 19
1
[Q] How to fit data to a straight line
Dear R users I have a question about how to fit data to a straight line. I tried nls to do it, but it didn't work. The reason I want to fit data to a straight line is that I need to compare AIC or BIC values of the two models (a straight line model vs a nonlinear curve model). Fitting data to a nonlinear curve is straightforward, but I could not figure out how to fit the data to a straight
2006 Apr 12
3
[Q] Bayeisan Network with the "deal" package
Dear R-users I am looking for a help in using the "deal" package. I followed the manual and paper from the author's web site to learn it, as shown below, but I could not figure out how to access the local and posterior probability of the nodes in the constructed network. library(deal) data(ksl) ksl.nw <- network(ksl) ksl.prior <- jointprior(ksl.nw) banlist <-
2010 Sep 01
1
[Q] Goodness-of-fit test of a logistic regression model using rms package
Hello, I was looking for a way to evaluate the goodness-of-fit of a logistic regression model. After googling, I found that I could use "resid(fit, 'gof')" method implemented in the rms package. However, since I am not used to the "le Cessie-van Houwelingen normal test statistic," I do not know which statistic from the returned from the "resid(fit,
2007 Jun 26
1
ylab at the right hand of a plot with two y axes
When I try to plot two lines ( or scatterplots) with different scales, this is what I have been doing: Suppose: I have y1 and y2 in a very different scale y1 = 1:100 y2 = c(100:1)*10 To plot them on top of each other and denote by different colors: I have to figure out the correct scale '10' and corresponding tick.vector and lables. Then do: plot(1:100, y1) # I can have
2003 May 16
2
Axis labels
Hello R-experts! When I produce a plot R takes avoids overlapping axis labels in order to maintain readabilty which is great. But now I have written a little custom plot function in which I set my own labels and label positions after generating the actual plot: axis(..., lables=c('A', 'B', 'F', 'G', 'M'), at=mypositions) As you may have guessed: This is
2005 Jun 12
1
y-axis and resizing window
hi using plot(..., las=1), i.e. horizontal axis labels, the labels on the y-axis jams if the heigth of the graphics windov becomes too low while both x-axis and y-axis kind of removes superflus lables with las=0 (default) is there a way to make plot behave alike with horizontal lables? regards s??ren
2006 Mar 24
1
Multiple error bar plots
Dear R-lister I have a question about how to create multiple error bar plots. I found that I can use an "errbar" function from Hmisc package to create one error bar plot in which there are multiple data points (x, y) with the error bars. Thus, I know that I can get "one" error bar plot which consists of many data points. However, I did not find a way to put
2012 Apr 12
2
pyramid.plot in plotrix, axis labelling
Hi, I've been looking at ways to make pyramid plots in R. I like the pyramid.plot method in plotrix as it seems the simplest to use and building them in ggplot looks a bit more code intensive than I'd like, being as I'm new to R. This package does pretty much what I need it to do, however I can't seem to scale the x axis labels. The other labels scale fine with labelcex. I
2007 Mar 09
4
How to create a list that grows automatically
Dear R users I would like to know if there is a way to create a list or an array (or anything) which grows automatically as more elements are put into it. What I want to find is something equivalent to an ArrayList object of Java language. In Java, I can do the following thing: // Java code ArrayList myArray = new ArrayList(); myArray.add("object1"); myArray.add("object2");
2007 Mar 09
4
How to create a list that grows automatically
Dear R users I would like to know if there is a way to create a list or an array (or anything) which grows automatically as more elements are put into it. What I want to find is something equivalent to an ArrayList object of Java language. In Java, I can do the following thing: // Java code ArrayList myArray = new ArrayList(); myArray.add("object1"); myArray.add("object2");
2001 Nov 28
2
Value lables, variable lables
I'm looking for an analogy to SPSS and "variable lable" and "value lable" in R. I have a copy of S+4.0 and can't find any info in their docs, and don't find it in R-intro either. In SPSS, for each variable, there is a name like VAR001 and a variable lable (a longer descriptive string) like Respondent ID and for many of the values of other variables there are
2013 Sep 15
1
Data labels in R
I need to put labels in plot in R. Can someone please help? The labels are in the excel file and loaded into "lables" library(xlsx) library(zoo) fPTAnalysis<-"Input.xls" data<-read.xlsx(fPTAnalysis,9) lables<-subset(data, select=c(Labels)) data<-subset(data, select=c(Date,col1, col2 )) data<-read.zoo(data) plot(data) -- Regards, Ankur Seth [[alternative
2008 Jan 07
2
reducing the number of x-axis lables in a bwplot while plotting all boxes
I apologize if this is somewhere in the archives, but I can't seem to find a solution to this question. I've been trying to plot a bwplot: print( bwplot( n.pareto ~ as.factor(gen) | mut.rate * n.pop, data=p6, horizontal=FALSE, box.ratio=0.75, cex=0.6, xlim=c(-1,51), ylim=c(-1,500),
2010 May 13
3
Multiple plots; single x(y) labels
Hi All, Can anyone please help me with getting a single x and y-axis label while plotting muliple plots. Here is the code: par(mfcol=c(2,2)) plot(x <- sort(rnorm(7)), type = "s", main = "", ylab="", xlab="") plot(x <- sort(rnorm(27)), type = "s", main = "", ylab="", xlab="") plot(x <- sort(rnorm(47)), type =
2004 Feb 10
2
Dotplot: y-labels from rownames
How can I use row.names() as y-labels in Dotplot? How to set horizontal orientation for y-lables in lattice()? Dotplot(stcod1 ~ Cbind(statgh2,statgh2-1.96*segh2,statgh2+1.96*segh2)[og], subset=statgh2[og]>0.1, data=h2inqerrg02st, xlab="G", ylab=row.names(h2inqerrg02st)[og], main="") I have tried doing it with mtext() as well, but there is not enough space besides
2003 Feb 09
1
label storage and conversions: DBMS and R
Hi R users, I am new to using DBMS with R for large datasets. Thanks to all who responded with useful suggestion to my earlier postings about using large datasets and DBMS with R. I am writing to get some help about how to design good tables in DBMS to take full advantage of the wonderful built-in facilities in R, like labels. I am using RMySQL client. Because R makes good use of variable
2009 Feb 11
2
Label bars in a faceted bar plot in ggplot2
Hi List, I am running R 2.8.0 on a Windows XP machine, running ggplot2 version 0.8.1 I want to label the bars in a faceted grid barplot. Reproducible R code is given below: #### reproducible facet barplot ##### library(ggplot2) # Dataset from which to create the barplot ml <- rep(1:10,2) vals <- rnorm(20,mean = 10, sd=1) type <- c(rep("MAPE",10),rep("AIC",10))
2004 Nov 16
3
How to remove x, y labels from a plot
Hi there, I need to plot an illustrative figure without ticks, x, y labels in R. I managed to get the ticks removed, but had no luck with x, y labels. Any suggestions would be much appreciated. Jin Li [[alternative HTML version deleted]]