Re: [R] Print and plot a cross Data

2020-08-07 Thread Jim Lemon
Hi Pedro, Scratch that last email. I remembered that "tus.datos" was so large that it was hanging my R session last time. However, this seems to work: tus.datos<-read.table("datayield.csv",sep=";", header=TRUE,stringsAsFactors=FALSE) row_subset<-tus.datos$DATA_TYPE_FM %in% data_types & tus.datos

Re: [R] Print and plot a cross Data

2020-08-07 Thread Jim Lemon
Hi Pedro, I think the error arises in your "if" statement, should be: if(PERIOD == TRUE) or more simply: if(PERIOD) Jim On Thu, Aug 6, 2020 at 11:54 PM Pedro páramo wrote: > > Hi Jim, > > Many thanks for your help, I will try a 2D plot and then pass to 3D. > > I am trying something like this:

Re: [R] Print and plot a cross Data

2020-08-06 Thread Pedro páramo
Hi Jim, Many thanks for your help, I will try a 2D plot and then pass to 3D. I am trying something like this: tus.datos<-read.table("datayield.csv",sep=";",header=TRUE) data_types<-c("PY_1Y","PY_2Y","PY_3Y","PY_4Y","PY_5Y","PY_6Y","PY_7Y") row_subset<-tus.datos$DATA_TYPE %in% data_types x<-tu

Re: [R] Print and plot a cross Data

2020-08-05 Thread Jim Lemon
Hi Pedro, I'm not exactly sure of what you want, but try this: # I downloaded the CSV file as datayield.csv tus.datos<-read.table("datayield.csv",sep=";",header=TRUE) library(scatterplot3d) data_types<-c("PY_1Y","PY_2Y","PY_3Y","PY_4Y","PY_5Y","PY_6Y","PY_7Y") row_subset<-tus.datos$DATA_TYPE %in%

[R] Print and plot a cross Data

2020-08-05 Thread Pedro páramo
Hi all, I have a csv (extracted from a web) I attach the data: I use this code to read the data; library("readr") tusDatos <- read_csv('~/datayield.csv') In this CSV, I want to use three columns: tusDatos$DATA_TYPE_FM, (will be X axis) tusDatos$TIME_PERIOD (will be the pivot to search the v