Publications by Jim

How to Add Superscripts and Subscripts to Plots in R?

29.07.2022

The post How to Add Superscripts and Subscripts to Plots in R? appeared first on Data Science Tutorials How to Add Superscripts and Subscripts to Plots in R?, The basic syntax for adding superscripts or subscripts to charts in R is as follows. ggplot2 Guide define superscript expression x.expression <- expression(x^3 ~ variable ~ label) define su...

1856 sym R (612 sym/8 pcs) 6 img

Best Books to Learn Statistics for Data Science

30.07.2022

The post Best Books to Learn Statistics for Data Science appeared first on Data Science Tutorials Best Books to Learn Statistics for Data Science, Do you want to learn statistics for data science? If so, read these books. If so, your quest is over here. The eight finest books for learning statistics for data science are listed in this post. So, r...

7240 sym 32 img

How to Turn Off Scientific Notation in R?

25.08.2022

The post How to Turn Off Scientific Notation in R? appeared first on Data Science Tutorials How to Turn Off Scientific Notation in R?, The following ways can be used to disable scientific notation in R. The examples that follow each method’s use in action. Method 1: Turn Off Scientific Notation as a Global Setting Suppose we multiply the follow...

2301 sym R (292 sym/12 pcs)

A start

24.06.2009

I’ve decided that this summer I will finally break down and force myself to learn a little bit about using R. I currently use Stata, a very good program, but the idea of R is appealing since it’s free under the GNU license. It has a large and active user community and is constantly growing and expanding.I’ll be using this blog to keep track...

794 sym

Reading data, and a graph

25.06.2009

Using Microsoft Excel I’m collecting aggregate data, by state, of various social, political, and economic indicators. I export them into a tab-delimited file called ‘states.txt’ (pretty clever, I know.) I’ve got data on education expenditures, firearm deaths per capita, median household income, etc. I’d like to do some analysis and grap...

2142 sym 2 img

A bit about linear models

26.06.2009

Before we delve into slightly more advanced plotting commands I want to talk a little about linear models, specifically, linear regression. In R this is very, very simple. For instance, in our ‘states’ data frame, we might want to look at median household income as a predictor of state education expenditures. The command lm calculates this fo...

1775 sym

Filtering cases

26.06.2009

Something that’s very important to be able to do in data analysis and visualization is to filter out cases. Let’s say you want to do identical analyses of two different groups, or of one group and then a subset of it. R can do this a little differently; instead of merely filtering out cases you can create an object that is a subset, and then ...

1995 sym 2 img

Conservatism of Congressional delegation and %Bush vote

27.06.2009

Busy day today, so I’ll just post this:plot(bush04 ~ cons_hr, type = “n”,xlab=”Mean ACU rating”,ylab=”2004 Bush vote”,xlim=c(0,100),ylim=c(0,100),cex.lab=1.25,cex.axis=0.75,col.axis = “#777777”,col.lab = “#777777”)text(y=bush04,x=cons_hr, labels=stateid,cex=0.75)abline(lm2, lty=2, col=”red”)axis(side = 2, at ...

743 sym 2 img

Time series data

28.06.2009

gdp attach(gdp)as.Date(date)plot(gdp~date, data=gdp,pch=16,xlab=””,ylab=”GDP (2000 dollars)”) Related To leave a comment for the author, please follow the link and comment on their blog: Learning R. R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're lookin...

486 sym 2 img

Return

06.07.2009

I’m back from vacation, so I’ll post something substantive later today. Related To leave a comment for the author, please follow the link and comment on their blog: Learning R. R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or ...

478 sym