I am trying to create a fixation maps where the weight of each fixation on the 2d density map is determined by its duration. As I understood, the stat_density2d
I would like to automatically create a table in R Markdown, where the table is created in html, but the data comes from R. Could anyone help me with how to do t
I would like to caculate the ratio of the levels of status (inactive/active) for each production_year: df[1:150, c("production_year", "status")] production
I have data from an experiment where Subjects rated an Event called f: df <- structure(list(Subject = c("A", "A", "A", "B", "B", "B"), T
In geomtextpath/geom_textline, we can change the label position using parameter vjust/hjust, is it ok to use y/x value directly. Thanks! library(ggplot2) librar
I want to create a list of matrices of correlations and covariances from a dataframe. I tried piping the dataframe into the list, using the magrittr pipe operat
I've encountered a very bizarre problem with my R scripts. I had a bunch saved in a folder, and after reinstalling R (which was itself having some issues), the
I am trying to create a plot in igraph in which nodes are colored red for females and blue for males. I have a data frame called "advisory_edge_1" that houses m
Good morning everyone I have the following example: data <- data.frame(matrix(0, nrow = 3, ncol = 5)) colnames(data) = paste("art_", 1:5, sep = "") rownames(
I have this: df<-structure(list(x = c(-0.803739264931451, 0.852850728148773, 0.927179506105653, -0.752626056626365, 0.706846224294882, 1.0346985222527, -0.47
I am trying to draw a beanplot with the following code: library(beanplot) beanplot(df, col="#cccccc", names="plot-1", yaxt="n", overallline="median", ll=0.0000
I am trying to create a word cloud with the image text below wordcloud(words = wcdata_table$Dispensed_State, freq = wcdata_table$Date,scale=c( ,0.25), max
I am fairly new to R, not sure what's causing quantile code, to return two different results. When put in a for loop to calculate for all columns, it returns in
These are the instructions that are given: In 2012 and prior to that time, a pizza chain in Australia, Eagle Boys (taken over by Pizza Hut in 2016), ran an adve
I am trying to create a beanplot: library(beanplot) beanplot(df, col="#cccccc", log="y", names="plot-1", yaxt="n", overallline="median", ll=0.00001) However,
I've been using Tableau to visualise some data on activity counts at different sites. I'm trying to convert to using R studio instead. However, I'm facing some
I wrote a function to calculate annual growth for my parameters: growth.rate <- function(data){ for (i in c("Area", "Rainfall", "Yield")) { T1 <- ma
I'm doing a Shiny app and I have a question. I want to have a slider input which min and max values depends on values in some dataframe. That's easy to make. Bu
Consider dataset the following dataset: ID Start time End time Traffic Lane 1 01-01-2015 01-02-2015 500 1 1 01-01-2015 01-02-2015 400 2 1 01-02-2015 01-03-2015
I am having trouble creating a bar chart utilizing ggplot2 that is sorted by value. I understand that I can order the data frame by the value