Questions tagged as 'r'

2
answers

How can I store a chart as a variable and export it later?

Considering: x<-1:10 y<-10:1 plot(x,y) I would like to store the result of plot() in a variable, such as grafico<-plot(x,y) Is it possible? And to export how do I?     
asked by 24.11.2015 / 12:53
2
answers

How do I put the Y-axis inverted (descending) on the R?

I'm trying to present graphs on coefficient of uniformity, but usually in this type of chart, the Y axis is organized in descending order, from 100 to 0. I would like to know how to do this. It can be for the function plot and / or for...
asked by 31.08.2016 / 01:48
2
answers

In R, what is the best way to select inner list sets within a list of lists?

I have a list of lists like the following: lista <- list(num = list(1:10, 11:20, 21:30), chr = list(letters[1:13], letters[14:26], LETTERS[1:13])) I would like to make it a data.frame , but for this the two internal l...
asked by 17.11.2016 / 00:57
1
answer

How to calculate percentage variation with 3 variables in R

I have the following data: library(sidrar) Tab1612SojaQde <-get_sidra(1612,variable = 214, period = c("last"=22), geo="State",classific = 'c81', category = list(2713)) head(Tab1612SojaQde) Unidade da Federação (Código) Unidade da Fe...
asked by 03.12.2018 / 21:05
1
answer

Import multiple excel tables at the same time

I want to import 27 Excel tables into R without typing the import command 27 times, since table names range from tab101 to tab127 . I tried this way, but got wrong: library(readxl) n = c() for (i in 1:27){ # fazendo um vetor com o...
asked by 13.05.2018 / 03:06
2
answers

How to smooth a curve and define ylim for a given function using ggplot2?

I got the following graph with the curve function: f1 <- function(x){x^4 - 6*(x^2)} curve(f1, xlim = c(-3, 3), ylim= c(-10, 5), ylab = expression(x^4 - 6*(x^2))) However, I would like to use the ggplot2 package to reproduce this same gra...
asked by 18.03.2015 / 20:23
2
answers

How to change the R language?

When I install the r tag on my machine I noticed that the menus and the exits of the console were all in Portuguese. How do I change to English? Within RGui I did not find any option to change the language and it is not possible to r...
asked by 29.01.2015 / 14:39
2
answers

Mean profile graph (including error bars)

I have a dataset that I have labeled malaria, which can be downloaded from this link . I need to construct a graph of mean profiles (including error bars) of the newborn weight variable ('weight' column), second group of parasite type (column '...
asked by 24.04.2017 / 19:33
1
answer

Constructing a function by defining x and y using R

I have this array: matrix=structure(c(0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.1, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.2, 0.21, 0.22, 0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.3, 0.31, 0.32, 0.33, 0.34, 0...
asked by 27.10.2016 / 01:08
1
answer

Generate links and download content programmatically

I would like to know how I would collect data from a website. The site is link . There I have to download all the data from operation history from power generation to Natural Energy Influence. The problem is that within each data series, you...
asked by 14.12.2015 / 14:56