facet

open source faceted search / guided navigation for ecommerce sites with .net apis

寵の児 提交于 2019-12-29 08:16:45
问题 i am looking for open source libraries which provide high performance faceted search / guided navigation for ecommerce sites our ecommerce platform is entirely built on .net and so i would prefer libraries which do provide .net apis performance is of utmost importance here... i checked out sphinx as well as solr but looking for better options as far as performance goes as per blogs sphinx takes an average of 5 - 6 seconds to perform the first level of faceted search which is unacceptable in a

How to use different font sizes in ggplot facet wrap labels?

偶尔善良 提交于 2019-12-29 07:33:09
问题 I want to create two different sizes of text in the labels of my facet wrap. For example: Species X (size 14) Total catch (n=133) (size 12) test <- read.csv(paste0(path, "Costello Artvgl2 for Stack.csv"), sep = ";", dec = ",", header = T) str(test) test$Wert <- factor(test$Wert, levels = c("one","two","three","four","five","six")) test$Sampling.site <- factor(test$Sampling.site, levels = c("Species X Area T","Species Y Area T","Species X Area A","Species Y Area B","Species X Area B","Species

Combining FacetGrid and dual Y-axis in Pandas

浪尽此生 提交于 2019-12-25 07:51:28
问题 I am trying to plot two different variables (linked by a relation of causality), delai_jour and date_sondage on a single FacetGrid. I can do it with this code: g = sns.FacetGrid(df_verif_sum, col="prefecture", col_wrap=2, aspect=2, sharex=True,) g = g.map(plt.plot, "date_sondage", "delai_jour", color="m", linewidth=2) g = g.map(plt.bar, "date_sondage", "impossible") which gives me this: FacetGrid (There are 33 of them in total). I'm interested in comparing the patterns across the various

Solr - count documents in the range of two date fields

*爱你&永不变心* 提交于 2019-12-24 09:32:52
问题 Here are some example Solr documents I got: { "id": "1", "openDate": "2017-12-01T00:00:00.000Z", "closeDate": "2017-12-04T00:00:00.000Z" }, { "id": "2", "openDate": "2017-12-02T00:00:00.000Z", "closeDate": "2017-12-04T00:00:00.000Z" }, { "id": "3", "openDate": "2017-12-02T00:00:00.000Z", "closeDate": "2017-12-06T00:00:00.000Z" } The dates that a document is "active" are the dates between the openDate (inclusive) and the closeDate (exclusive). I want to count the number of documents that are

Multi-select Solr filtering and faceting

跟風遠走 提交于 2019-12-24 05:48:48
问题 I'm trying to implement facets for my Solr service, but I'm a bit confused as to what I'm seeing. I understand that Tags and Exclusions are used to ignore specific filter counts, such that something like this would happen: [] Nike 55 [] Adidas 54 [] New Balance 32 [] Black 25 [] Blue 26 [] Red 29 [] Yellow 23 --------------- [X] Nike 55 [] Adidas 54 [] New Balance 32 [] Black 20 [] Blue 15 [] Red 13 [] Yellow 13 [X] Nike 20 [] Adidas 0 [] New Balance 0 [X] Black 20 [] Blue 15 [] Red 13 []

Rails: How to use facets with search results

こ雲淡風輕ζ 提交于 2019-12-24 00:58:56
问题 I have a rails application where I am searching for repair shops. The search class method looks like this: def self.search(params) if params repairshop = Repairshop.where(:approved => true) if params[:radius].present? repairshop = repairshop.near(params[:location], params[:radius]) if params[:location].present? else repairshop = repairshop.near(params[:location], 200) if params[:location].present? end if params[:keywords].present? repairshop = repairshop.joins(:specializations).joins(:brands

ggsurvplot_facet returns: “Error in grDevices::col2rgb(colour, TRUE) : invalid color name” when used inside a function

﹥>﹥吖頭↗ 提交于 2019-12-24 00:22:32
问题 I'm trying to plot survival curves for several variables facet by the variable sex with the ggsurvplot_facet() function. When I apply my code to a single fitted model, it works fine. However, when I try to use the same code within a function or within a for loop, it fails to plot all the survival curves that should be plotted and returns an error. I would perform this plotting in ggsurvplot_facet() itself if it allowed as input a list of survfit elements, in the same way ggsurvplot() does,

ggplot2 different facet width for categorical x-axis [duplicate]

本秂侑毒 提交于 2019-12-23 21:36:53
问题 This question already has an answer here : different size facets proportional of x axis on ggplot 2 r (1 answer) Closed 2 years ago . I have am plotting different facets of categorical data: df <- as.data.frame(as.factor(c("A","B","C","D","E","F"))) names(df) <- "Xvar" df$Yvar <- c(2,1,4,5,3,7) df$facet <- c(rep("facet 1",2),rep("facet 2",4)) ggplot(df, aes(x=Xvar, y=Yvar, group=1)) + geom_line() + facet_wrap(~facet, scales="free_x") How can I make it such that facet 1 consisting of only two

Facetting 3 plots from 3 different datasets with ggplot2

不想你离开。 提交于 2019-12-23 17:57:51
问题 I have 3 datasets df1, df2, df3, each containing three columns (csv files: https://www.dropbox.com/s/56qh1l5kchsiof0/datasets.zip?dl=0) Each dataset represents a staked bar graph of the three columns, like so: This example shows df3, where the three columns of the dataset df3.csv are stacked one on top of the other Here's my r code to produce the above plot: require(reshape2) library(ggplot2) library(RColorBrewer) df = read.csv(".../df3.csv",sep=",", header=TRUE) df.m = melt(df,c("density"))

Add empty plots to facet, and combine with another facet

筅森魡賤 提交于 2019-12-23 17:45:11
问题 Using this SO solution I created a facet with two "empty" plots, with the aim of combining with another group of facet_wrap plots, as shown below. The purpose is to have two y-axis labels for different unit measurements. How can I make the grid layout look like the top image, which produces the arrangement I want, but not the axis labels? This was accomplished with plot_grid with individual plots. My current output does not scale correctly and overlaps the other plots, as seen in the second