similar to: line plot

Displaying 20 results from an estimated 10000 matches similar to: "line plot"

2009 Sep 08
4
barplot with lines instead of bars
Dear useRs, I want to plot the following barplot with lines instead of bars. Is there a way? data <- data.frame(cbind(k = 0:3, fk = c(11, 20,7,2), f0k = c(13.72, 17.64, 7.56, 1.08), fkest = c(11.85, 17.78, 8.89, 1.48))) d <- t(data[,2:4]) barplot(d, beside=TRUE) Regards, Rafael. ____________________________________________________________________________________ [[elided Yahoo
2009 Aug 20
3
categorized barplot
Dear useRs, I can't seem to find out how to categorize my histogram. I have the following dataset: Time??????????? First.day? Second.day 08:00-10:00??????? 9?????????? ? 8 10:00-12:00?????? 13???????? ? 15 12:00-14:00??????? 9?????????? ? 9 14:00-16:00???????10????????? ? 9 I attached a jpeg file to this e-mail containing the sketches. What I'd like to do is a barplot (or histogram),
2009 Oct 15
2
How to right-align labels in dotchart
I have only just discovered the joys of the dotchart (since I am reading William Cleveland's -- Sean Carmody The Stubborn Mule http://www.stubbornmule.net http://twitter.com/seancarmody [[alternative HTML version deleted]]
2010 Jan 02
2
help with for loop
Dear useRs, I want to write a function that generates all the possible combinations of diff(). Example: If my vector has length 5, I need the diff() until lag=4 -> c(diff(my.vec), diff(my.vec, lag=2), diff(my.vec, lag=3), diff(my.vec, lag=4)) If it has length 4, I need until lag=3 -> c(diff(my.vec), diff(my.vec, lag=2), diff(my.vec, lag=3)) So, it must be until lag=(length(my.vec)-1).
2009 Nov 16
2
Conditional statement
Dear useRs, I wrote a function that simulates a stochastic model in discrete time. The problem is that the stochastic parameters should not be negative and sometimes they happen to be. How can I conditionate it to when it draws a negative number, it transforms into zero in that time step? Here is the function: stochastic_prost <- function(Fmean, Fsd, Smean, Ssd, f, s, n, time, out=FALSE,
2009 Jul 13
1
math expressions in graphs
Dear useRs, I want to put a math expression in the ylab in my plot which should be a Delta and a 'y' with a trace and a hat above it and a 't' as subscription. How could I manage to do it? Thanks in advance, Regards, Rafael. ____________________________________________________________________________________ [[elided Yahoo spam]] [[alternative HTML version deleted]]
2009 Sep 07
2
model simulation
Dear useRs, Is there a package or a function able to simulate models with sets of differential equations? Where we could input our model and give R some value to start with and it would generate the graphs? Regards, Rafael. ____________________________________________________________________________________ [[elided Yahoo spam]] [[alternative HTML version deleted]]
2009 Mar 12
8
help with loop
Dear useRs, I'm trying to write a loop to sum my data in the following way: (the second - the first) + (the third - the second) + (the fourth - the third) + ... for each column. So, I wrote something like this:   c <- list()   for(i in 1:ncol(mydata)) {   for(j in 2:nrow(mydata)) {   c[[i]] <- sum(yc[j,i] - yc[(j-1),i])   }}} As for the columns it works pretty fine, but it only
2009 Oct 06
2
ggplot equivalent of par(xaxt)
I am playing around learning ggplot and cannot see how to suppress the x or y axis values ( equivalent of xaxt in basic graphics) It must be obvious but I'm not seeing it. Problem ================================================================= timedata <- structure(list(month = structure(c(5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L,
2009 Sep 23
1
dotchart to barplots
Hi, I am trying to plot the following data so that it can be visually represented well. I tried the dotchart but I felt it was too spread out. Then I tried the barplot which is good enough for me. Is there a way to give the labels for the y-axis as in the dot chart? Also, I feel the grey level is confusing, so is there options for designs within the bars? I cannot use color as the journal wants
2009 Feb 09
2
Help on BarPlot
Dear all As a new user of R, can someone please help me with the following I have created a programme to analyse laboratory data and one of the graphs is a bar plot of 'Z' scores. On the bar plot I am using the following line to plot some results barplot (zb[,c("ZBW")], ylim = c(-6,6), names.arg=zb[,c("LabNo")],xlab="Lab Code Number", cex.names = .5 ,
2008 Jun 24
1
Bar charts with error bars
I would like to add error bars to a bar chart, I have created in R. I am able to add error bars to a bar plot, but the same method does not seem to work for my bar chart version.   Is there a way to add error bars to bar charts? ________________________________________________________ Audi, Fiat, Peugeot, Skoda, Porsche, Toyota, Ford - Kelkoo har brugte biler til en hver smag! Klik her
2009 Jan 24
3
Problem with colormodel in pdf driver
I'm trying to create figures in PDF that use the 'gray' colormodel instead of the default 'RGB' model, by requirements of a publisher. My problem has to do with the fact that I'm not being able to get gray colors with this option on the pdf() driver. Here is a small example for problem replication: > R.version _ platform
2007 Dec 17
3
bar plot colors
All, I have a question regarding colors in bar plots. I want to stack a total of 18 cost values in each bar. Basically, it is six cost types and each cost type has three components- direct, indirect, and induced costs. I would like to use both solid color bars and bars with the slanted lines (using the density parameter). The colors would distinguish cost types and the lines would
2009 Jul 29
3
Side by Side Barplot Newbie Question
Hi, Many apologies for sending this twice. I accidentally hit the send button before I finished writing my mail. I am new to R and I hope someone can help me with my problem. I am trying to draw a side by side barplot. There is a main experiment and there are many sub experiments within the main experiment. I would like to draw a bar plot showing the number and type of sub_experiments done for
2008 Nov 22
2
How to add the value on the barchart
I have question: how can I put the value on the bar chart. This my code: barchart(Tuberize~Family|factor(Year)*factor(Hr),data=tuber) This's my data:    Year Hr Family Tuberize 1  2007 20      A     0.26 2  2007 20      B     6.08 3  2007 20      C     0.00 4  2007 20      D     0.27 5  2008 20      A     1.18 6  2008 20      B     9.17 7  2008 20      C     0.00 8  2008 20      D     2.13 9 
2008 Jan 24
2
Barplot w/ single stacked bar
Hi All, I can get the barplot function to do many types of plots, stacked or otherwise. However, I cannot get it to do a *single* stacked bar. I've searched several books & listserv archives to no avail. I suspect I'm missing the obvious from the help file! I can reach my goal in ggplot2, although the relative heights of the bar's pieces don't seem quite right (it does
2012 Oct 12
4
dotchart ordering problem
I'm having an sorting problem in dotchart. I want to change the order of the BA in groups to AB, but I haven't found any solution yet. What should I do? And what if I want to change the groups order as well? At the bottom from Conrol up to 10 mg/L on the top. Thank you! x = c(39, 23, 23, 35, 30, 26, 30, 30, 29, 29, 26, 29, 34, 33) y = c("Control", "DMSO", "0,1
2009 Oct 26
1
fit an exponential curve
Dear useRs, I have the following plot: pos <- c(27/44, 11/32, 8/40, 4/42, 3/40, 4/40, 2/40) tmin <- c(15.8, 12.6, 10.5, 2.4, 5.2, 8.5, 7.9) plot(tmin, pos) I would like to fit an exponential curve to it. How could I be able to do this? Thanks in advance, Rafael. ____________________________________________________________________________________ [[elided Yahoo spam]]
2003 Sep 29
5
colours in dotchart (PR#4343)
Problem: neither fg or bg nor color work properly in dotchart. version: R-1.7.1 for windows code which shows the errors: x <- matrix(rnorm(16),ncol=2,dimnames=list(paste("a",1:8,sep=""),c("before","afte r"))) dotchart(x,fg="blue",bg="lightgrey") dotchart(x,color=c("red","blue")) Dr Ian J Wilson Lecturer in