Tag r

[Solved] ggplot2 confusion

There is nothing wrong that I can see. Your code works. Some times such errors arise due to not flowing the ggplot expression properly. Try it like this: ggplot(train, aes(x= Item_Visibility, y = Item_Outlet_Sales)) + geom_point(size = 2.5, color=”navy”) +…

[Solved] Is is.subset not working in R?

apriori returns rules object, not a vector: data(“Adult”) ## Mine association rules. rules <- apriori(Adult, parameter = list(supp = 0.5, conf = 0.9, target = “rules”)) class(rules) # [1] “rules” if you want to compare lists of rules you will…

[Solved] Make a cumulative plot of events in R

A possible solution: library(lubridate) # example time data time = c( “2015-10-05 15:44:41.986797”, “2015-10-05 15:59:23.389583”, “2015-10-05 16:59:44.99402”, “2015-10-05 16:59:44.99402”, “2015-10-05 16:59:44.99402”, “2015-10-05 16:59:44.99402”, “2015-10-05 17:59:59.594524”, “2015-10-05 17:59:59.594524”, “2015-10-05 18:00:05.555564” ) # transform time strings to POSIXct objects for count time…

[Solved] Cbind Error ” Object not found”

You defined one and only one object when you executed: tino=read.delim(“clipboard”) The column names of that object are not handled as other objects. If you wnated to create a new object from that dataframe you could do this: x <-…