I'm sure this is a really simple problem, but I've spent hours digging and I
keep running into roadblocks.
I'm trying to get a simple chart with three time series. Similar to the
attached example
http://www.nabble.com/file/p25398419/Excel%2Bchart%2Bexample.pdf
Excel+chart+example.pdf , somethin
Thanks - that works great.
Do you have any suggestions about the grid() problem - i.e. that the
vertical gridlines do not line up with the x-axis tickmarks (which are
years)?
I can't see on what basis the vertical gridlines are being positioned, but
it doesn't look good that they are not lined u
Here it is using zoo and classic graphics.
1. Just paste this into your R session:
library(zoo)
URL <- "http://www.nabble.com/file/p25398419/test%2Bchart%2Bdata.csv";
z <- read.zoo(URL, header = TRUE, format = "%d-%m-%y", sep = ",")
cols <- c("green", "red", "blue")
plot(z, screen = 1, col = c
Try this script. I converted test_date to numeric decimal year
link <- "C:\\R_Home\\Charts & Graphs Blog\\R_Chart_Doc\\text_data.csv"
testdata<- read.table(link, head = T, sep = ",",na.strings = "na")
test_date = as.Date(testdata$Date,"%d-%m-%y")
# Convert dates to decimal year
my_yr <-
This script worked for me. Be sure to put in your correct link.
link <- "C:\\R_Home\\Charts & Graphs Blog\\R_Chart_Doc\\text_data.csv"
testdata<- read.table(link, head = T, sep = ",",na.strings = "na")
test_date = as.Date(testdata$Date,"%d-%m-%y")
plot(test_date, testdata$Model, type="l
5 matches
Mail list logo