Re: Error in seq.int(0, to0 - from, by) : 'to' must be finite

4,228 views
Skip to first unread message

Janesh Devkota

unread,
Mar 5, 2013, 11:29:52 PM3/5/13
to Aseem sharma, Ggplot2
Aseem,

In your dataset what does NA mean ? It seems there are 6 columns of data but header has only 5 labels. I suppose Date refers to 1, 2, 3 ........ so on , is that correct ? 

If NA is not your dataset, then try the following code:


library(ggplot2)

sample <- read.table("error.txt", header=F,skip=1)
names(sample) <- c("Date", "NA","LATemp.mean","LPpt.sum","LRH.mean","LWS.mean")
ggplot(sample, aes(x=Date,y=LATemp.mean))+geom_point()

Hope it helps. 

Janesh 


On Tue, Mar 5, 2013 at 9:08 PM, Aseem sharma <nature...@gmail.com> wrote:
Hi,
I am trying to plot daily time series for about 8 month data.
When i tried to plot with ggplot it gives me error as "Error in seq.int(0, to0 - from, by) : 'to' must be finite"
attached is data  where date is x-axis.
can anyone suggest how to fix this ?
thanks

--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
 
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
 
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Aseem Sharma

unread,
Mar 6, 2013, 12:26:47 AM3/6/13
to Janesh Devkota, Ggplot2
Thank you Janesh.
It helps
a


------------------

"Namaste नमस्ते"

Aseem Sharma

Graduate Research Assistant

Northern Hydrometeorology Group(NHG)

Natural Resources and Environmental Studies Institute(NRESi)

University of Northern British Columbia

Prince George, BC, V2N 4Z9, Canada

Tel: 250-960-5427

Web: http://www.unbc.ca/


 "All know the Way, but few actually walk it."

"सबैको कल्याण होस् ।"


Reply all
Reply to author
Forward
0 new messages