similar to: How to make a plot?

Displaying 20 results from an estimated 2000 matches similar to: "How to make a plot?"

2005 Dec 13
8
superimpose density line over hist
Hi all, I'm trying to superimpose a rchisq density line over a histogram with something like: hist(alnlength) lines(density(rchisq(length(alnlength), 4)),col="red") But the rchisq line won't appear anywhere, Anyone knows what I am missing here? Thanks in advance, Albert.
2005 Dec 13
4
Ploting graphics using X tints from a color
Hi, I'm trying to draw a 2D plot using multiple tints of red. The (simplified) setup is the following: || year | x | y || My idea is that each year is plotted with a different tint of red. Older year (lightest) -> Later year (darkest). I've managed to plot this with different scales of grays simply by doing: palette(gray(length(years):0/length(years))) before the plot and for each
2005 Dec 16
2
dendrogram branches with different lty
Dear r-list, I am trying to visually seperate the two main clusters of a dendrogram. The idea is to use: 'edgePar=list(lty=3)' for 'dend1[[1]]' and 'edgePar=list(lty=1)' for 'dend1[[2]]' I have not found a way to solve this. Any suggestions? Patrick hc <- hclust(dist(USArrests), "ave") (dend1 <- as.dendrogram(hc)) par(mfrow=c(2,2)) plot(dend1)
2006 Apr 25
10
www.r-project.org
Dear R users and developpers, My question is adressed to both of you, so I choose R-help to post it. Are there any plans to jazz up the main R website : http://www.r-project.org The look it have now is the same for a long time and kind of sad compared to other statistical package's website. Of course, the comparison is not fair, since companies are paying web designers to draw lollipop
2006 Feb 13
2
Plotting contour & filled.contour in one graph
Dear All, I have a question on overlaying a filled.contour (e.g. on soil properties data) and contour (by elevation) in one graph. Both have the same z matrix dimension. I'm able to overlay both graph, but the plots dimension did not overlap well on the same plots. How can I have both filled.contour and contour on the same graph? The commands that I have written are as follows:
2006 Apr 13
1
bash-like history mechanism and prompt settings
Hi, I have a couple of questions: * would it be possible to add more information on the history, for example the number of the command and a timestamp. With the number of command, one could do some stuff like in a terminal to recall a specific command : $ !45 and with the timestamp, one could imagine to ask for commands that were typed in a given interval of time. For example : R>
2005 Dec 08
2
Commented version of the home page graphics code
Folks, I was drawn to R, like many others, partly for the opportunity to draw nice, colorful graphs (occasionally ones with meaning, too :-) ). I am still quite a newbie to R. As such, I have been trying to understand the code for the graphics on the home page (the ones from the 2004 contest -- the dendrogram, the cluster plot with different coloured circles, etc.) I was wondering whether anyone
2006 Jan 12
3
hello World problem
Hi, I'm trying to build a simple R package 'helloWorld' with just one function that prints 'hello World' on the C side. I agree that it is completely useless, but I just start mixing R and C. My C file is as follows : #include <stdio.h> void helloWorld() { printf("hello world !\n") ; } When I call it from R, here is what happens : R>
2006 Feb 06
5
lme4: Error in getResponseFormula(form) : "Form" must be a two sided formula
I'm sure I'm being stupid so flame away... R2.2.1 on Windoze (boohoo) latest updates of packages. I'm exploring a dataset (land) with three variables looking at an narrowly unbalanced two group (GROUP) ANCOVA of a randomised controlled trial analysing endpoint score (SFQ.LOCF.ENDPOINT) entering the baseline score (SFQ.BASELINE) as covariate and the following work fine: > res.same
2006 Jan 19
2
R Commenting Style
I seem to remember reading somewhere about some style guide regarding R the number of comment characters (#) prior to the comment meaning something. Anyone know to what I'm referring? Where? ---------------------------------------------------------- SIGSIG -- signature too long (core dumped)
2006 Feb 08
3
difference between rnorm(1000, 0, 1) and running rnorm(500, 0, 1) twice
Hi R users This looks a simple question Is there any difference between between rnorm(1000,0,1) and running rnorm(500,0,1) twice in terms of outcome ? TM
2006 Apr 26
2
About regression and plot
Dear R-help, This is my first R day. I want to ask some more beginner's questions. Q1. How can I obtain the covariance matrix for parameter estimates of a multiple regression? I checked ?lm but didn't get the information. Q2. How can I see the old graphs in the graph window? Q3. Can R plot animated graph? For example, I want to see the dynamic change of a 2D graph during a time
2012 Feb 03
1
Contour plot with messy field data.
Hello, I have some data that will be in the form: structure(list(station = structure(c(20L, 2L, 4L, 19L, 3L, 11L, 1L, 5L, 10L, 12L, 17L, 18L, 6L, 9L, 13L, 16L, 7L, 8L, 15L, 14L ), .Label = c("1", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "2", "3",
2006 Apr 28
2
Memoire defaillante
Bonjour, je travaille actuellement sur le logiciel R et mets en place des procédures d'analyse de données : sur des procédures de classification employant la commande dist(), je rencontre des problèmes de memoire : avec des data.frame d'environ 100 000 lignes j'obtiens le message d'erreur suivant : Error : cannot allocate vector of size 668 481 330 Ou une autre erreur souvent
2006 Apr 19
4
creating empty cells with table()
Hello, Suppose I simulate 20 observations from the Poisson distribution with lambda = 4. I can summarize these values using table() and then feed that to barplot() for a graph. Problem: if there are empty categories (e.g. 0) or empty categories within the range of the data (e.g. observations for 6, 7, 9), barplot() does not include the empty cells in the x-axis of the plot. Is there any way to
2006 Jan 29
2
help with read.table() function
hello, I have just started using R for doing a project in time series... unfortunately, I am having trouble using the read.table function for use in reading my data set. This is what I'm getting: I inputted: data <- read.table("D:/Oliver/Professional/Studies/Time Series Analysis/spdc2693.data", header = TRUE) I got: Error in file(file, "r") : unable to open connection
2006 Jan 29
2
help with read.table() function
hello, I have just started using R for doing a project in time series... unfortunately, I am having trouble using the read.table function for use in reading my data set. This is what I'm getting: I inputted: data <- read.table("D:/Oliver/Professional/Studies/Time Series Analysis/spdc2693.data", header = TRUE) I got: Error in file(file, "r") : unable to open connection
2005 Aug 23
3
Plotting using image files
This is a strange request, but I want to build a scatterplot using different image files (jpegs, gif, etc.) as the plot symbols. I have thought about setting this up using a very large layout matrix, but I thought someone might have a better approach. Furthermore, is there any way to have R paste an image file into a specific coordinate within a scatterplot? Thanks in advance, Mike Mike
2006 May 19
11
iraq statistics - OT
I came across this one: http://www.nysun.com/article/32787 which says that the violent death rate in Iraq (which presumably includes violent deaths from the war) is lower than the violent death rate in major American cities. Does anyone have any insights from statistics on how to interpret this?
2001 Aug 29
2
Missing functions in package e1071(Win*)
Hi! After unziping the CRAN file e1071.zip on my Win95 library directory, I start R and type >library(e1071) After that, help commands of the e1071 functions work (i.e., help(read.pnm), BUT some functions themselves are not available: > read.pnm Error: Object "read.pnm" not found I've looked at the file library/R/e1071 with an ascii editor and it seems like the functions