Questions tagged as 'plot'

1
answer

How to create a Needle chart in R?

I'm trying to make a chart of Needles suggested in the Matter of Non-parametric Methods in the Histogram Study. I found a command called rug() , but it does not seem like the idea.     
asked by 01.09.2014 / 15:48
2
answers

How to make a conditional graph y ~ x for each factor of the data.frame?

Suppose a data.frame like the following: set.seed(1) dados <- data.frame(w=rep(c("A", "B", "C", "D"), 50), y= rnorm(200), x=rnorm(200), stringsAsFactors=FALSE) How do you create a% s of% s by each category of y~x...
asked by 20.02.2014 / 16:21
1
answer

How to put the regression equation on a graph?

In another question , and how to put the regression line on a graph. But how to put the regression equation on the graph? For example: Or     
asked by 22.02.2014 / 14:55
2
answers

Connecting the points to the regression line

Suppose the following database: Income <- structure(list(X = 1:30, Education = c(10, 10.4013377926421, 10.8428093645485, 11.2441471571906, 11.6454849498328, 12.0869565217391, 12.4882943143813, 12.8896321070234, 13.2909698996656, 13.732441...
asked by 02.04.2014 / 14:51
1
answer

How to create a plot with 2 superimposed histograms?

Suppose I have the following data from 2 distinct groups. set.seed(1) grupo1<-rnorm(400,6,2) grupo2<-rnorm(200,8,2) How do I make a histogram of the two groups on the same screen, identifying each of the groups with a distinct color a...
asked by 21.02.2014 / 01:11
1
answer

Plot 3D figures for list data

I have a a list with three arrays and a v vector with three frequencies (any positive real ones), these arrays form triangles through a function that created pplot . I want to add the information of v to build prisms,...
asked by 15.11.2016 / 05:12
3
answers

How to put the regression line on a graph?

Suppose a linear regression model such as the following: set.seed(1) x <- rnorm(100) y <- rnorm(100) + 2*x +10 modelo <- lm(y~x) If I plot y against x, how do I include the regression line in the chart? plot(y~x)     
asked by 18.02.2014 / 14:50
2
answers

How to make concentric circles in the plot of r

I need to make concentric circles, preferably displaced from the source, in the plot() function to serve as a visual reference for a function. I tried abline() , but I did not succeed.     
asked by 15.05.2018 / 15:55
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
1
answer

How to plot the estimated logistic regression model

Suppose I have the data below, apply a logistic regression on them and want to see the estimated function that returns the probability. #Simula os dados nobs<-100 beta0=-10 beta1=0.006 saldo=runif(nobs,1300,2300) p_x <- exp(beta0 + beta1...
asked by 19.02.2014 / 13:29