ggplot2, facet_grid, free scales?
Perhaps it’s because you have only one y axis, using your way. Did you try something like this?
Perhaps it’s because you have only one y axis, using your way. Did you try something like this?
rbind.fill from the package plyr might be what you are looking for.
The answer below refers to the case when you have 2 arguments in facet_grid() or facet_wrap(). facet_grid(x ~ y) will display x*y plots even if some plots are empty. Ex: There are 4 distinct cyl and 7 distinct class values. The above displays 4 * 7 = 28 plots, even if some are empty (because some classes do not have corresponding … Read more
Since (still) nobody got check-mark, I assume that you have some practical issue in mind, mostly because you haven’t specified what type of vector you want to convert to numeric. I suggest that you should apply transform function in order to complete your task. Now I’m about to demonstrate certain “conversion anomaly”: Let us have a glance at data.frame … Read more
It could be the out of memory killer of the operating system. Are you cleaning up your workspace when you have finished with a dataset?
Change the definition of multiply to take additional unknown arguments:
I think you intended to have this:
The problem is that omega in your case is matrix of dimensions 1 * 1. You should convert it to a vector if you wish to multiply t(X) %*% X by a scalar (that is omega) In particular, you’ll have to replace this line: with: everywhere in your code. It happens in two places (once … Read more
Knitr produces a R session, without a default cran mirror unless you specifically asked for one. We tend to forget we need to set up CRAN for every R session when we use Rstudio because it takes care of it, but only for interactive use, not for knitr. You could try specifying a mirror as … Read more
Your logic will need to also exclude NAs in the subset. See the following example. Note the subsets vectors are stored away before x is modified.