File:Stockmansharpe10degCMFadj2000 popconsens.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 512 × 512 pixels, file size: 87 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: Population weighted (L: 63%, M:31%, S:6%) cone spectral sensitivities from Stockman and Sharpe using 'colorscience' package for R.

Source code:

library(ggplot2)
library(tidyr)
library(colorscience)
library(ggspectra)

o.df<-StockmanSharpe10degCMFS2000

colnames(o.df)=c("wavelength","L","M","S")
o.df
lms<-c("L","M","S")
lin.df<-o.df

lin.df
lin.df$L<-lin.df$L *0.63
lin.df$M<-lin.df$M*0.31
lin.df$S<-lin.df$S*0.06


t.df <- lin.df %>% gather(cone.type, response, L:S)
t.df$response
ggplot(t.df, aes(x=wavelength,y=(response),group=cone.type)) + stat_wl_strip(alpha = 0.4, ymin = -Inf, ymax = Inf) + scale_fill_identity() +geom_line(color="black",size=2)+geom_text(data=t.df[t.df$wavelength==590,], aes(label=cone.type,),size=8,hjust=0,vjust=-1)+labs(title="Population Weighted Cone Spectral Sensitivities",x="wavelength (nm)", y="cone sensitivity")+xlim(400,680)+ theme(text = element_text(size=10)) 

ggsave("stockmansharpe10degCMFadj2000_popconsens.svg")
Date
Source No machine-readable source provided. Own work assumed (based on copyright claims).
Author User:Maneesh

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current00:48, 6 October 2016Thumbnail for version as of 00:48, 6 October 2016512 × 512 (87 KB)Maneesh (talk | contribs)Adjusted fonts added spectral background
19:47, 5 October 2016Thumbnail for version as of 19:47, 5 October 2016512 × 512 (8 KB)Maneesh (talk | contribs)changed graph theme, adjust x-axis limits
19:30, 5 October 2016Thumbnail for version as of 19:30, 5 October 2016512 × 512 (10 KB)Maneesh (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata