How to change line width in ggplot?

Whilst @Didzis has the correct answer, I will expand on a few points Aesthetics can be set or mapped within a ggplot call. An aesthetic defined within aes(…) is mapped from the data, and a legend created. An aesthetic may also be set to a single value, by defining it outside aes(). As far as I … Read more

Categories r

Rename multiple columns by names

setnames from the data.tablepackage will work on data.frames or data.tables Note that changes are made by reference, so no copying (even for data.frames!)

Categories R

Javascript require() function giving ReferenceError: require is not defined

RequireJS is a JavaScript file and module loader. It is optimized for in-browser use, but it can be used in other JavaScript environments, like Rhino and Node. Using a modular script loader like RequireJS will improve the speed and quality of your code. http://requirejs.org/docs/download.html Add this to your project: https://requirejs.org/docs/release/2.3.5/minified/require.js and take a look at this http://requirejs.org/docs/api.html

No non-missing arguments warning when using min or max in reshape2

You get this warning because the min/max are applied to numeric of length 0 argument. This reproduces the warning. Note that for mean you don’t get the warning : It is just a warning that don’t have any effect in the computation. You can suppress it using suppressWarnings: EDIT Above I am just answering the question: What’s the … Read more

Categories R

Youtube – downloading a playlist – youtube-dl

In a shell, & is a special character, advising the shell to start everything up to the & as a process in the background. To avoid this behavior, you can put the URL in quotes. See the youtube-dl FAQ for more information. Also beware of -citk. With the exception of -i, these options make little sense. See the youtube-dl FAQ for more information. … Read more